N = int(input())
if N%2 == 0:
    print(1,end = "")
else:
    print(7,end = "")
for i in range((N//2)-1):
    print(1,end = "")