#include <iostream>
using namespace std;
int main() {
int X = 1;
auto worker = [=]() mutable {return X++;};
cout << worker() << endl;
cout << worker() << endl;
cout << worker() << endl;
cout << worker() << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgWCA9IDE7CgkKCWF1dG8gd29ya2VyID0gWz1dKCkgbXV0YWJsZSB7cmV0dXJuIFgrKzt9OwoJCgljb3V0IDw8IHdvcmtlcigpIDw8IGVuZGw7Cgljb3V0IDw8IHdvcmtlcigpIDw8IGVuZGw7Cgljb3V0IDw8IHdvcmtlcigpIDw8IGVuZGw7Cgljb3V0IDw8IHdvcmtlcigpIDw8IGVuZGw7CgkKCQoJcmV0dXJuIDA7Cn0=