N = int(input()) if N % 2 == 0: ans = "1" * (N // 2) else: ans = "7" + "1" * (N//2-1) print(ans)