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