#include <bits/stdc++.h>
using namespace std;
void file() {
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
}
int main() {
  int n;
  cin >> n;
  bool b = 0;
  if (n % 2) cout << 7, n -= 3;
  while (n) {
    cout << 1;
    n -= 2;
  }
  return 0;
}
