#include using namespace std; int main() { int N; cin >> N; while(N>=1) { if(N>3) cout << "1", N-=2; if(N==3) cout << "7", N-=3; if(N==2) cout << "1" , N-=2; } cout << endl; return 0; }