N = int(input()) if N % 2 == 0: STR = '1' * int(N/2) else: STR = '1' * int(N/2) + "7" print(STR)