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