#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
//---------------------------
using namespace std;
//---------------------------
#define REP(i,n) for(int i = 0; i < (n); i++)
#define P(x) cout << (x) << "\n"
//---------------------------


int main(){
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);


  int n;cin>>n;
  if (n%2 == 0) {
    string s(n/2, '1');
    P(s);
  }else{
    string s((n-1)/2, '1');
    s[0] = '7';
    P(s);
  }

  return 0;
}