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