#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; if (n == 3) { std::cout << 7; n -= 3; } else { std::cout << 1; n -= 2; } while(n >= 2){ if (n != 3) { std::cout << 1; n -= 2; } else { std::cout << 7; n -= 3; } } std::cout << std::endl; return 0; }