#include #include using namespace std; int main() { int n; cin >> n; string answer; if (n % 2 == 1) { n -= 3; answer.push_back('7'); } for (; n > 0; n -= 2) { answer.push_back('1'); } cout << answer << endl; return 0; }