#include #include #include using namespace std; int main(void){ //input int S; cin >> S; //calc int num = S; vector sq; do{ if(sqrt(num * 1.0) == (int)sqrt(num * 1.0)){ sq.push_back(num); S -= num; num = S; }else{ num--; } }while(S > 0); //output cout << sq.size() << endl; for(int i=0;i