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