#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1e9 + 7;
long long int n, ar[1000005], k, sum, m;
char s[1000005];
int main() {
  cin.tie(0);
  cout.tie(0);
  ios_base::sync_with_stdio(false);
  cin >> n;
  if (n % 2 == 1) cout << 7, n = n - 3;
  while (n > 0) {
    cout << 1;
    n = n - 2;
  }
}
