#include using namespace std; class stac { private: int a, b, l, n, k=0,plot; public: stac():a(0),b(0), l(0), plot(0){} stac(int x,int y, int z):a(x),b(y),l(z){} ~stac(){} void operator ++(int) { cin>>n; for (int i=0; i>a>>b>>l; } void operator ++() { if(b>1000) { while(b>1000) { b=b-1000; k++; } } else { k=0; } if(k>a) k=a; } int get_plot() { return k; } }; int main() { stac s; s++; ++s; cout<