N = int(input()) if N == 3: print(7) else: digit = N // 2 result = '' for i in range(digit): result += '1' print(result)