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