#include <iostream>
#include <memory> //yeehaww!
//using namespace std; //для пидоров

class Yoba
{
public:
	Yoba()
	{
		
	}
	
	~Yoba()
	{
		std::cout << "Destructed: " << this << std::endl;
	}
	
	std::shared_ptr<Yoba> method()
	{
		return std::make_shared<Yoba>();
	}
	
	void show()
	{
		std::cout << "123" << std::endl;
	}
	
};

int main() {
	// your code goes here
	Yoba y;
	auto r = y.method();
	r->show();
	return 0;
}