n=int(input())
print("Happy new year!Good luck!""\n"*n)