main=mapM_(print.f)[1..195] f x|x==g x=x f x=f$x+g x g=(0+).read.reverse.show.(0+)