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