#include <iostream>
#include <sstream>
#include <climits>
int main() {
std::istringstream st("1234567890123"); // Try with 2147483647
int result;
st >> result;
if (result == INT_MAX)
std::cout << "Overflow!" << std::endl;
else
std::cout << result << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3N0cmVhbT4KI2luY2x1ZGUgPGNsaW1pdHM+CgoKaW50IG1haW4oKSB7CglzdGQ6OmlzdHJpbmdzdHJlYW0gc3QoIjEyMzQ1Njc4OTAxMjMiKTsgLy8gVHJ5IHdpdGggMjE0NzQ4MzY0NwoJaW50IHJlc3VsdDsKCglzdCA+PiByZXN1bHQ7CgoJaWYgKHJlc3VsdCA9PSBJTlRfTUFYKQoJCXN0ZDo6Y291dCA8PCAiT3ZlcmZsb3chIiA8PCBzdGQ6OmVuZGw7CgllbHNlCgkJc3RkOjpjb3V0IDw8IHJlc3VsdCA8PCBzdGQ6OmVuZGw7CgoJcmV0dXJuIDA7Cn0=