#include using namespace std; int main(){ int prosgm; cin >> prosgm; for( int i = 0; i < prosgm/2 - prosgm % 2; i++ ) cout << 1; if( prosgm % 2 ) cout << 7; cout << endl; return 0; }