#include <iostream>
using namespace std;
int getNumber(bool &check) {
check = !check;
return check ? 10 : 20;
}
int main() {
bool numero = false;
cout << getNumber(numero) << endl;
cout << getNumber(numero) << endl;
cout << getNumber(numero) << endl;
}
ICAgICNpbmNsdWRlIDxpb3N0cmVhbT4KICAgIHVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAgICBpbnQgZ2V0TnVtYmVyKGJvb2wgJmNoZWNrKSB7CiAgICAgICAgY2hlY2sgPSAhY2hlY2s7CiAgICAgICAgcmV0dXJuIGNoZWNrID8gMTAgOiAyMDsKICAgIH0KICAgIAogICAgaW50IG1haW4oKSB7CiAgICAgICAgYm9vbCBudW1lcm8gPSBmYWxzZTsKICAgICAgICBjb3V0IDw8IGdldE51bWJlcihudW1lcm8pIDw8IGVuZGw7CiAgICAgICAgY291dCA8PCBnZXROdW1iZXIobnVtZXJvKSA8PCBlbmRsOwogICAgICAgIGNvdXQgPDwgZ2V0TnVtYmVyKG51bWVybykgPDwgZW5kbDsKICAgIH0=