#include <iostream>
int main()
{
std::cin.exceptions(std::ios::failbit);
try {
int userNumber;
std::cin >> userNumber;
} catch(const std::ios_base::failure& e) {
std::cout << "Error message\n";
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgppbnQgbWFpbigpCnsKICAgIHN0ZDo6Y2luLmV4Y2VwdGlvbnMoc3RkOjppb3M6OmZhaWxiaXQpOwogICAgdHJ5IHsKICAgICAgICBpbnQgdXNlck51bWJlcjsKICAgICAgICBzdGQ6OmNpbiA+PiB1c2VyTnVtYmVyOwogICAgfSBjYXRjaChjb25zdCBzdGQ6Omlvc19iYXNlOjpmYWlsdXJlJiBlKSB7CiAgICAgICAgc3RkOjpjb3V0IDw8ICJFcnJvciBtZXNzYWdlXG4iOwogICAgfQp9Cg==