#include <iostream>
int main()
{
int A = 10;
int B = 20;
int& foo = A;
std::cout << foo << "\n";
foo = B;
std::cout << foo << "\n";
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CglpbnQgQSA9IDEwOwoJaW50IEIgPSAyMDsKCQoJaW50JiBmb28gPSBBOwoJCglzdGQ6OmNvdXQgPDwgZm9vIDw8ICJcbiI7CgkKCWZvbyA9IEI7CgkKCXN0ZDo6Y291dCA8PCBmb28gPDwgIlxuIjsKfQ==