#include #include int main() { int matches[10]; matches[0] = 6; matches[1] = 2; matches[2] = 5; matches[3] = 5; matches[4] = 4; matches[5] = 5; matches[6] = 6; matches[7] = 3; matches[8] = 7; matches[9] = 6; int n; std::cin >> n; std::vector result; if (n == 3) { result.push_back(7); n -= 3; } else { result.push_back(1); n -= 2; } while(n >= 2){ if (n != 3) { result.push_back(1); n -= 2; } else { result.push_back(7); n -= 3; } } for (size_t i = 0; i < result.size(); i++) { std::cout << result[i]; } std::cout << std::endl; return 0; }