main=mapM putStrLn[last$show x:["aho"|'3'<-show$x*10+gcd 3x]|x<-[1..300]]