#include <string>
#include <sstream>
#include <iostream>
int main()
{
std::string str="123";
std::istringstream buf(str.substr(1,2));
long int num;
buf >> num;
std::cout << num << '\n';
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPHNzdHJlYW0+CiNpbmNsdWRlIDxpb3N0cmVhbT4KaW50IG1haW4oKQp7CiAgICBzdGQ6OnN0cmluZyBzdHI9IjEyMyI7CiAgICBzdGQ6OmlzdHJpbmdzdHJlYW0gYnVmKHN0ci5zdWJzdHIoMSwyKSk7CiAgICBsb25nIGludCBudW07CiAgICBidWYgPj4gbnVtOwogICAgc3RkOjpjb3V0IDw8IG51bSA8PCAnXG4nOwp9IA==