N = int(input())

X = '1' * (N//2 - 1)

print('7' + X if N%2 else '1' + X)