#include <bits/stdc++.h>
using namespace std;
int const MAXN = 2e5 + 10;
int n, m, T;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  if (n & 1) cout << "7", n -= 3;
  while (n) {
    n -= 2;
    cout << "1";
  }
  return 0;
}
