#include<stdio.h>
int main(void)
{
    int n = 0;
    scanf("%d",&n);
    while(n > 0 && n)
    {
        printf("Happy new year!Good luck!\n");
        n--;
    }
    return 0;
}