#include <bits/stdc++.h>
using namespace std;
int n, stick[10] = {6, 2, 5, 5, 4, 5, 6, 3, 7, 6};
int ans = 0;
int main() {
  cin >> n;
  if (n % 2) cout << '7', n -= 3;
  int m = n / 2;
  for (int i = 1; i <= m; i++) cout << '1';
  return 0;
}
