import math n = int(input()) if n % 2 == 0: for num in range(int(n / 2)): print('1', end = '') else: x = math.floor(n / 2) - 1 print('7',end = '') for num2 in range(x): print('1', end = '')