#include #include using namespace std; int main() { // 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 //vectord{ 6, 2, 5, 5, 4, 5, 6, 3, 7, 6 }; int N; cin >> N; cout << ( N%2==0? "1" : "7" ); for( int i = 0; i < N/2-1; i ++ ) { cout << "1" ; } cout << endl; return 0; }