#include #include #include #include #include int main(void) { int matti; char str[10000]=""; scanf("%d",&matti); int i=0; if(matti%2!=0) { str[0]='0'+7; matti-=3; i++; } while(matti>1) { str[i]='0'+1; i++; matti-=2; } printf("%s",str); }