#include <iostream>

int main()
{
	int N;
	std::cin >> N;
	if (N % 2 == 1)
	{
		std::cout << 7;
	}
	else
	{
		std::cout << 1;
	}
	for (int i = 0, n = (N / 2) - 1; i < n; i++)
	{
		std::cout << 1;
	}
	std::cout << std::endl;

	return 0;
}