#C5226. Find the Middle Date
Find the Middle Date
Find the Middle Date
You are given three dates. Each date is represented by three integers: year, month, and day. Your task is to determine the middle date when the three dates are sorted in chronological order. The date format is \( (yyyy, mm, dd) \), and the "middle date" is the one that is neither the earliest nor the latest.
Note: For the purpose of this problem, you should assume that the dates given are all valid. The input will be read from standard input (stdin) and the result should be printed to standard output (stdout) in the form of three integers separated by spaces.
inputFormat
The input consists of three lines. Each line contains three space-separated integers representing a date in the format \( yyyy \) \( mm \) \( dd \).
outputFormat
Output the middle date in the same format: three space-separated integers \( yyyy \), \( mm \), \( dd \).
## sample2020 5 17
2019 11 1
2021 1 25
2020 5 17