puts $<.read.chop.reverse.codepoints.map{|v|(v^2).chr}.join