日期排序


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

将一些日期按前后顺序输出。

Input

第一个整数N,表示后面有N个日期,格式为“YYYY-MM-DD”。

Output

输出若干日期,格式同上。

Sample

Input

4
2006-04-09
2006-03-26
2006-04-16
2006-03-25

Output

2006-03-25
2006-03-26
2006-04-09
2006-04-16

Comments

There are no comments at the moment.