require 'prime' hs2={} hs3={} 2.upto(10){|i| hs2[i**2]=0 hs3[i**3]=0 } n=gets.to_i if hs2.member?(n) then puts "Heihosu!" elsif hs3.member?(n) then puts "Ripposu!" elsif n.prime? then puts "Sosu!" elsif n==6 || n==28 then puts "Kanzensu!" else puts n end