System.in.eachLine{n=it as int;printf"$n = 6 * %.0f %c 1\n",n/6,45+~n%6}