#include <iostream>
using namespace std;
 
class Point {
	private:
		int x{0}, y{0};
	public:
		Point(int a, int b) {
			x = a; y = b;
		} 
		// init типо
		~Point() {
			cout << "DELETED!!";
		}
		void set(int a, int b) {
			x = a; y = b;
		}
		
		void get(int& a, int& b) {
			a = x; b = y;
		}
}; 

int main() {
	int x, y;
	Point* point = new Point(12, 21);
	delete point;
	// point.set(12, 42);
	// point.get(x, y);
	
	cout << x << " " << y;
}