#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = -1;
  cin >> n;
  int ones = n / 2;
  int remainder = n % 2;
  if (remainder == 0) {
    for (int i = 0; i < ones; i++) {
      cout << "1";
    }
  } else {
    cout << "7";
    for (int i = 1; i < ones; i++) {
      cout << "1";
    }
  }
  cout << endl;
  return 0;
}
