#include #include #include using namespace std; using ll = long long; template inline bool chmax(T& a, const T& b) {if (a inline bool chmin(T& a, const T& b) {if (b> N >> K; K--; ll prod = 1; { ll N2 = N; while (N2 > 0) { prod *= (N2 % 10) + 1; N2 /= 10; } } string ans = ""; string Nstr = to_string(N); for (int i=0; i