#include <iostream>
using namespace std;
namespace S1 {
int A = 1;
}
namespace S2 {
int A = 2 ;
}
int main(void) {
{ using namespace S1;
S2::A = A + 1;
}
{ using namespace S2;
S1::A = A + 1;
}
cout << S1::A << S2::A;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogICAgCm5hbWVzcGFjZSBTMSB7CmludCBBID0gMTsKfQogICAgCm5hbWVzcGFjZSBTMiAgewppbnQgQSA9IDIgOwp9CiAgICAKaW50IG1haW4odm9pZCkgewogICAgeyB1c2luZyBuYW1lc3BhY2UgUzE7CiAgICAgICAgUzI6OkEgPSBBICsgMTsKICAgIH0KICAgIHsgdXNpbmcgbmFtZXNwYWNlIFMyOwogICAgICAgIFMxOjpBID0gQSArIDE7CiAgICB9CiAgICBjb3V0IDw8IFMxOjpBIDw8IFMyOjpBOwogICAgcmV0dXJuIDA7Cn0KCg==