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