#include<iostream>

using namespace std;

int main()
{
	int N;
	cin >> N;

	if (N % 2 == 1){
		cout << 7;
		for (int i = 0; i < (N - 3) / 2; i++)
			cout << 1;
	}
	else{
		for (int i = 0; i < N / 2; i++)
			cout << 1;
	}

	cout << endl;
	
}