#include #include #include #include #define REP(i,k,n) for(int i=k;i> n; string s = ""; while(n >= 4) { s += "1"; n -= 2; } if(n == 3) s += "7"; else s += "1"; cout << s << endl; return 0; }