#include <iostream>
#include <string>
using namespace std;
int main()
{
try
{
throw - 1;
}
catch (int x)
{
cerr << "We caught: " << x << endl;
}
catch (const string &name)
{
cerr << "We caught: " << name << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewoJdHJ5Cgl7CgkJdGhyb3cgLSAxOwoJfQoJY2F0Y2ggKGludCB4KQoJewoJCWNlcnIgPDwgIldlIGNhdWdodDogIiA8PCB4IDw8IGVuZGw7Cgl9CgljYXRjaCAoY29uc3Qgc3RyaW5nICZuYW1lKQoJewoJCWNlcnIgPDwgIldlIGNhdWdodDogIiA8PCBuYW1lIDw8IGVuZGw7Cgl9CgoJcmV0dXJuIDA7Cn0=