n = int(input()) if n == 0: exit() s = "Hello world!\n" print(s * (n - 1), end = "") print(s[:-1])