let rec(!)x=try!x@let a=read_line()in[String.length a,a^" "]with _->x and p(x,y)=print_string y;;List.iter p(List.sort compare![])