N = int(input()) digits = N//2 ans = '1' * digits if N%2==0 else '1' * (digits-1) + '7' print(int(ans))