N = int(input()) d, m = divmod(N, 2) if m == 0: ans = '1' * d else: ans = '7' + '1' * (d-1) print(ans)