#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m, a, b, i, x = 1, j, mx = 0, t, k, ans = 0, c = 0;
  string s, ss, str;
  char ch;
  cin >> n;
  k = k - 3;
  long long int ara[n + 1], bra[n + 1], taj[n + 3];
  memset(taj, 0, sizeof(taj));
  map<long long int, long long int> mp;
  if (n % 2) cout << 7;
  for (i = 3; i < n; i += 2) cout << 1;
  if (n % 2 == 0) cout << 1;
  cout << endl;
  return 0;
}
