a='!odlllreohw' for i in range(100): s='' while i:s+=' '+a[2-i%3::2];i/=3 print s[:0:-1]or'world'