#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <iostream>
#include <map>
#include <list>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <queue>
#include <iomanip>

using namespace std;

int main(void)
{
	long long n;
	string res;
	long long tmp = 1;

	cin >> n;

	if(n % 2 == 0) res = "1";
	else		   res = "7";

	for (int i = 1; i < n / 2; i++) {
		res = res + "1";
	}

	cout << res << endl;

	return (0);
}