N = int(input())
if N%2==0:
    n = N//2
    print('1'*n)
else:
    n = N//2 - 1
    print('7'+'1'*n)