#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
  long long int n,m;
  cin >> n ;
  if(n>=2){
  if(n%2)cout<<7;
  else cout<<1;
    n-=2;
    while(n>=2){
        cout<<1;
        n-=2;
    }
  }
  cout<<endl;
  return 0;
}