foreach n [read stdin] {puts "$n = 6 * [expr [incr n]/6] [format %c [expr 45-$n%6]] 1"}