#include <string>
#include <iostream>
int main()
{
std::string str="123";
long int num = stol(str.substr(1,2));
std::cout << num << '\n';
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGlvc3RyZWFtPgppbnQgbWFpbigpCnsKICAgIHN0ZDo6c3RyaW5nIHN0cj0iMTIzIjsKICAgIGxvbmcgaW50IG51bSA9IHN0b2woc3RyLnN1YnN0cigxLDIpKTsKICAgIHN0ZDo6Y291dCA8PCBudW0gPDwgJ1xuJzsKfSA=