#include using namespace std; #define REP(i,n) for(int i=0; i<(n); i++) struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star; int main() { int W, D; cin >> W >> D; int sum{}, total{}; for( int i = D; i > 0; i-- ) { sum = floor( W / pow( D, 2 ) ); total += sum; cout << sum << " " << total << endl; W -= sum; D--; } cout << sum << endl; return 0; }