#include int main(){ int N; scanf("%d",&N); if(N&1){ N>>=1; printf('7'); N--; }else{ N>>=1; } while(N){ putchar('1'); N--; } putchar('\n'); return 0; }