#!/usr/bin/python

for x in sys.stdin
   if x == 3:
      print "lucky lucky day!"
      x = x + 4
      print x
   else:
      print "out of luck bro"

if x == 7: print "all hail heroes!"

for y in range (0,7):
   print y + 1