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