#include <iostream>
#include <numeric>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <queue>

#define rep(i, a) FOR(i, 0, a)
#define FOR(i, a, b) for(int i = a; i < b; ++i)

typedef long long ll;
typedef unsigned long long ull;
typedef std::pair<int, int> P;

int main(){
	int n;
	std::cin >> n;
	if (n % 2 != 0)n -= 3, std::cout << 7;
	while (n != 0)n -= 2, std::cout << 1;
	std::cout << std::endl;
	return 0;
}