total_num = int(input()) num_for_1 = 2 num_for_7 = 3 answer = "" if total_num % 2 == 0: for i in range(total_num // num_for_1): answer += "1" else: answer = "7" for i in range((total_num - num_for_7) // num_for_1): answer += "1" print(int(answer))