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