#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  {
    int n, i;
    cin >> n;
    if (n & 1) {
      cout << 7;
      n -= 3;
    }
    while (n) {
      cout << 1;
      n -= 2;
    }
  }
  cerr << " Execution : " << (1.0 * clock()) / CLOCKS_PER_SEC << "s \n";
  return 0;
}
