#include using namespace std; int main() { // your code goes here int a; int one; cin >> a; if (a > 3){ /* code */ one = a/2; for(int i = 0; i < one; i++ ){ cout << "1"; } }else if (a == 3){ /* code */ cout << "7"; }else if(a == 1){ cout << "1"; } cout << endl; return 0; }