#include <bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
const int64_t mod = 1e9 + 7;

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

	if (N % 2) {
		cout << 7;
		N -= 3;
	}

	while (N) {
		cout << 1;
		N -= 2;
	}

	cout << endl;
}