#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b;
  cin >> a;
  if (a % 2) {
    a = a - 3;
    cout << "7";
    while (1) {
      if (a <= 0) break;
      a = a - 2;
      cout << "1";
    }
  } else {
    while (1) {
      cout << "1";
      a = a - 2;
      if (a == 0) break;
    }
  }
}
