#include <iostream>
#include <iomanip>

using namespace std;

class Ex
{
public:
    Ex(){ cout << "ctor\n"; }
    Ex(const Ex&){ cout << "cctor\n"; }
    ~Ex() { cout << "dtor\n"; }
};


int main(int argc, char * argv[])
{
    for(int i = 0; i < 3; ++i)
    {
        try
        {
            throw Ex();
        }
        catch(Ex&e)
        {
        }
    }

}
