N = int(input()) print("1" * ((N-3)//2) + "7" if N&1 else "1"*(N//2))