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