program TryTest{

    function Main():void;
    {
        try
		{
			throw("ERROR_1");
		}
		catch
		{
			try
			{
				try
				{
					throw("ERROR_2");
				}
				catch
				{
					throw("ERROR_3");
				}
			}
			catch
			{
				throw("ERROR_4");
				//writeLn("Ok!");
			}
		}
    }

	constructor
	{
		try
		{
			Main();
		}
		catch
		{
			writeLn("PROGRAM FAILED AND WILL BE HALT...");
			sleep(1000);
			halt();
		}
	}
}