#include <iostream>
using namespace std;

int main() {
	// your code goes here
	try
	{
	    int* a = new int(0);
	    std::cout << "allocated a " << &a << "\n";
	} catch (const std::bad_alloc &e)
	{
		std::cout << "bad alloc! " << e.what() << "\n";
	}
	
	return 0;
}