#include <bits/stdc++.h>
int main() {
  int n, c = 1;
  scanf("%d", &n);
  if (n % 2 == 1 && n > 1) {
    c = 7;
    printf("%d", c);
    n = n - 3;
  }
  c = 1;
  while (n > 0) {
    printf("%d", c);
    n = n - 2;
  }
}
