#include int main() { int n; scanf("%d", &n); if (n % 2 > 0) { printf("7"); n -= 3; } for (; n > 0; n -= 2) printf("1"); printf("\n"); return 0; }