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