#include <bits/stdc++.h>
using namespace std;
int main() {
  int aa;
  cin >> aa;
  int a = aa / 2;
  int broh = 1;
  if (aa % 2 == 1) {
    a = a - 1;
    broh = 7;
  } else {
    a = a - 1;
  }
  cout << broh;
  for (int z = 0; z < a; z++) {
    cout << 1;
  }
  return 0;
}
