#include #include int main() { int num; std::cin >> num; if (num % 2 != 0) std::cout << "7"; else std::cout << "1"; num = num/2 - 1; while(num > 0) { std::cout << "1"; num -= 1; } }