N = int(input()) n = '' if(N%2 != 0): n += '7' N -= 3 for i in range(int(N/2)): n += '1' print(int(n))