m = [6, 2, 5, 5, 4, 5, 6, 3, 7, 6] n = int(input()) if n & 1: a = n // 2 - 1 print("7" + a * "1") else: print("1" * (n // 2))