main=mapM f[1..] f x|x==g x=print x|x/=196=f$x+g x g=read.reverse.show