{a[$1]++}END{for(i=0;i<1e5;i++)for(;a[""i]--;)i%2?o=o i RS:e=e i RS;print e RS o}