#include <stdio.h>

int main() {
    short n,i;
    scanf("%hd",&n);
    for (i = 0; i < n; i++)
        printf("Happy new year!Good luck!\n");
    return 0;
}