#include <memory>
int main()
{
std::auto_ptr<int> pbase[3];
std::auto_ptr<int> b1(new int(1));
std::auto_ptr<int> b2(new int(2));
std::auto_ptr<int> b3(new int(3));
pbase[0] = b1;
pbase[1] = b2;
pbase[2] = b3;
return 0;
}
I2luY2x1ZGUgPG1lbW9yeT4KCmludCBtYWluKCkKewogICAgc3RkOjphdXRvX3B0cjxpbnQ+IHBiYXNlWzNdOwogICAgCiAgICBzdGQ6OmF1dG9fcHRyPGludD4gYjEobmV3IGludCgxKSk7CiAgICBzdGQ6OmF1dG9fcHRyPGludD4gYjIobmV3IGludCgyKSk7CiAgICBzdGQ6OmF1dG9fcHRyPGludD4gYjMobmV3IGludCgzKSk7CiAgICAKICAgIHBiYXNlWzBdID0gYjE7CiAgICBwYmFzZVsxXSA9IGIyOwogICAgcGJhc2VbMl0gPSBiMzsKICAgIAogICAgcmV0dXJuIDA7Cn0=