N = int(input()) print('7'*(N%2) + '1'*(N//2 - N%2))