Graderpractice for programmers

Back to 254271 Fun of Prog 63 - Review 2

D. Word order

Problem

Write a program that reads in 3 words and outputs them sorted by their number of letters (smallest to largest).

Examples

Input

lion
tiger
cat

Output

cat
lion
tiger

Input

dolphin
whale
ray

Output

ray
whale
dolphin

Submit your solution

java