#include <iostream>

using namespace std;

class T{};
class E: public T{};

int main() {
	try{throw E();}catch(T){std::cout<<"catched";};	
	return 0;
}