#C7508. Earliest Completion Date

    ID: 51387 Type: Default 1000ms 256MiB

Earliest Completion Date

Earliest Completion Date

You are given m notebooks. Each notebook has a completion date given as a string. The date is either in the format \(YYYY-MM-DD\) (which is comparable using lexicographical order) or the string incomplete if the notebook hasn't been completed.

Your task is to determine the earliest valid completion date among all notebooks. If all notebooks are incomplete, output No notebooks are complete.

Note: Input is read from stdin and the answer should be printed to stdout.

inputFormat

The first line contains an integer \( m \), the number of notebooks. Each of the following \( m \) lines contains a string representing a notebook's completion date. The string is either a valid date in the format \(YYYY-MM-DD\) or the string incomplete.

outputFormat

Print the earliest valid completion date among the given dates. If no valid completion date exists, print No notebooks are complete.

## sample
4
2023-05-10
2023-03-15
incomplete
incomplete
2023-03-15