N = int(input()) keta = N//2 if N%2: print("7"+"1"*(keta-1)) else: print("1"*keta)