#include int main(void){ int w, d; int i; int dw; double dy; scanf( "%d", &w ); scanf( "%d", &d ); for( i = 0; i < d; i++ ){ dy = w / ( ( d - i ) * ( d - i ) ); dw = (int)dy; w -= dw; } printf( "%d\n", dw ); }