public class Point {

	private int x;
	private int y;
	
	public Point()
	{
		this.x = 0;
		this.y = 0;
	}
	
	public Point(int x, int y)
	{
		this.x = x;
		this.y = y;
	}
	
	public int getX()
	{
		return x;
	}
	
	public int getY()
	{
		return y;
	}
	
	public String toString()
	{
		return "("+this.x+","+this.y+")";
	}
	
	public String getQuadrant()
	{
		String quad = null;
		if ((this.x ==0) || (this.y ==0)) quad = "0";
		else
		if ((this.x >0) && (this.y >0)) quad = "I";
		else
		if ((this.x < 0) && (this.y > 0)) quad = "II";
		else
		if ((this.x < 0) && (this.y < 0)) quad = "III";
		else
		if ((this.x > 0) && (this.y < 0)) quad = "IV";
		return quad;
	}
}

