N = int(input()) if N % 2 == 1: n = N // 2 ls = ['1' for i in range(n-1)] ls.append('7') print(''.join(ls)) else: n = N//2 ls = ['1' for i in range(n)] print(''.join(ls))