Shuffle puzzle

Sort the lines in each indent group, and sort the groups. That's the pattern. Or just move lines around manually to get a better score.

Input

3
	4
	2
1
	3
	1
2
	5
	8

Output

1
	1
	3
2
	5
	8
3
	2
	4