#include using namespace std; int main(int argc, char** argv) { int n; cin >> n; int one = 0, seven = 0; if (n % 2 != 0) { seven = 1; one = n / 2 - 1; } else { one = n / 2; } if (seven == 1) cout << "7"; for (int i = 0; i < one; i++) cout << "1"; cout << endl; return 0; }