#include using namespace std; using ll = long long; using ld = long double; #define print(x) cerr << #x << " = " << x << endl template ostream& operator<<(ostream &out, vector &cont) { out << "["; for (const auto &x : cont) out << x << ", "; out << "]"; return out; } bool isPrime(int n){ if(n < 2) return false; for(int i=2; i a; while(n2 != 0){ a.push_back(i*(n2%10)); i *= 10; n2 /= 10; } int maxAns = 0; for(int i=0; i> n; cout << solve(n) << '\n'; }