#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(int i=a;i<b;i++)

int N;

int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);

	while (cin >> N)
	{
		string ans = "";
		rep(i, 0, N / 2 - 1) ans += "1";
		if (N % 2 == 0)
			ans = "1" + ans;
		else
			ans = "7" + ans;
		cout << ans << endl;
	}
}