#include using namespace std; int main() { int N; cin >> N; //0:6,1:2,2:5,3:5,4:4,5:5,6:6,7:3,8:7,9;6 for(;;) { if(N-3>=2 && N%2!=0) { N = N-3; cout << 7; } else if(N-2>=0) { N = N-2; cout << 1; } else { break; } } cout << endl; return 0; }