#include<stdio.h>
int main()
{
    int n;
    scanf("%d",&n);
    for(int i;i<=n;i++)
    {
        printf("Happy new year!Good luck!\n");
    }
    
}