N = int(input()) if N % 2 == 0: S = '' for _ in range(N // 2): S += '1' print(int(S)) else: S = '7' for _ in range(N // 2 - 1): S += '1' print(int(S))