n = int(input())
print(["1"*(n//2),"7"+"1"*(n//2-1)][n&1])