#include <bits/stdc++.h>
using namespace std;
int a[12] = {6, 2, 5, 5, 4, 5, 6, 3, 7, 6};
int main() {
  int a;
  cin >> a;
  if (a % 2 != 0) {
    cout << "7";
    a -= 3;
  }
  while (a > 0) {
    cout << "1";
    a -= 2;
  }
  return 0;
}
