n = int(input()) num=[7] if n % 2 == 0: for i in range(n//2): print('1',end='') else: for i in range(n//2 - 1): num.append(1) print(''.join(map(str,num)))