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