while 1 {set n [expr -1<<~-[gets stdin]%32];puts "$n to [expr ~$n]"}