#include <bits/stdc++.h>
using namespace std;
vector<int> reg;
int getRegIndex(int num){
reg.resize(reg.size()+1);
return reg.size()-1;
}
int main()
{
reg.resize(1);
for(int i=0;i<10;++i)
{
reg[getRegIndex(1)] = getRegIndex(2);
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7Cgp2ZWN0b3I8aW50PiByZWc7CgppbnQgZ2V0UmVnSW5kZXgoaW50IG51bSl7CglyZWcucmVzaXplKHJlZy5zaXplKCkrMSk7CglyZXR1cm4gcmVnLnNpemUoKS0xOwp9CmludCBtYWluKCkgCnsKCXJlZy5yZXNpemUoMSk7Cglmb3IoaW50IGk9MDtpPDEwOysraSkKCXsKCQlyZWdbZ2V0UmVnSW5kZXgoMSldID0gZ2V0UmVnSW5kZXgoMik7Cgl9CglyZXR1cm4gMDsKfQ==