import sys try: import mydebug def dprint(*objects): print(*objects) except: def dprint(*objects, sep='', end='\n'): pass # d, p = [int(x) for x in input().split()] n = int(input()) d = {} d[0] = 6 # d[1] = 2 d[2] = 5 # d[3] = 5 # d[4] = 4 d[5] = 5 d[6] = 6 # d[7] = 3 d[8] = 7 d[9] = 6 no = (0, 2, 3, 6) r = {v: k for k, v in d.items() if k not in no} dprint(r) if n == 3: print(7) sys.exit(0) ans = "1" * (n // 2) print(ans)