#include <bits/stdc++.h>

using namespace std;

int main()
{
  int N;
  cin >> N;
  if(N & 1) cout << 7;
  else cout << 1;
  for(int i = 2; i * 2 <= N; i++) {
    cout << 1;
  }
  cout << endl;
}