n = int(input()) a = '1'*(n//2) if n % 2 == 0: print(a) else: print('7'+a)