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