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