def main(): n = int(input()) digits = n / 2 surplus = n % 2 num_list = [int(1) for i in range(digits)] if surplus == 1: num_list[0] = 7 num = "".join(num_list) print(num) if __name__ == "__main__": main()