N = int(input()) if N % 2 == 1: print(7, end="") N -= 3 while(N > 1): print(1, end="") N -= 2 print()