<>;$a[$_]++for<>=~/\S/g;$\=$a[$\]>$a[$_]?$\:$_ for 1..6;print