t={}for _ in io.lines()do t[#t+1]=8+#_.._ end table.sort(t)for _=1,#t do print(t[_]:sub(3))end