typedef long long ll; typedef long double ld; #include using namespace std; #define int long long ll isqrt(ll N){ ll sqrtN=sqrt(N)-1; while(sqrtN+1<=N/(sqrtN+1))sqrtN++; return sqrtN; } signed main(){ ll s; std::cin >> s; vector ans; while(s>0){ ll he = isqrt(s); s -= he*he; ans.push_back(he*he); } std::cout << ans.size() << std::endl; for (int i = 0; i < ans.size(); i++) { std::cout << ans[i]; if(i