N = int(input()) n = "" for x in range(N // 2): n += "1" if N % 2 == 1: n = "7" + n[1:] print(n)