class Main {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
	Point p1 = new Point(3, 5);
	Point p2 = p1;
	p1 = null;
	System.out.println(p2.getx());
    }
}

class Point {
	private int x;
	private int y;
	
	public Point(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public int getx() {
		return x;
	}
	public int gety() {
		return y;
	}
	public void setx(int x) {
		this.x = x;
	}
	public void sety(int y) {
		this.y = y;
	}
}