#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <iomanip>
using namespace std;
typedef long long LL;

int main(){
    LL N;
    cin >> N;
    string ans;
    if(N%2 == 1 && N>=3){
        ans += "7";
        N -= 3;
    }
    for(int i = 0; i < N; i+= 2){
        ans += "1";
    }
    cout << ans << endl;
    return 0;
}