#include <iostream>
#include <string>
using namespace std;
int main() {
std::string str = "123q";
int i = atoi(str.c_str());
std::cout << i << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglzdGQ6OnN0cmluZyBzdHIgPSAiMTIzcSI7CgoJaW50IGkgPSBhdG9pKHN0ci5jX3N0cigpKTsKCXN0ZDo6Y291dCA8PCBpIDw8IHN0ZDo6ZW5kbDsKCXJldHVybiAwOwp9