n, a = int(input()), 0 for i in range((n//2)-1): print(1,end='') if n%2 == 1: print(7) else: print(1)