#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
//typedef __int64 LL;
int main(){
    int N;
    cin>>N;
    if(N%2==1)cout<<7,N-=3;
    for(int i=N;i>0;i-=2)cout<<1;
    cout<<"\n";
    return 0;
}