s='' puts$<.map{|l|s=(l.scan(/./)*9).zip(s.chars*9).join[0,"f3~okih"[-$.].ord%103]}