n = int(input()) num = 1 for i in range(n // 2 - 1): num = num * 10 + 1 if n % 2 == 1: print(num + 6) else: print(num)