public class xycoor
{
	private int x;
	private int y;

	public xycoor()
	{
		x = 0;
		y = 0;
	}
	
	public xycoor(int a, int b)
	{
		x = a;
		y = b;
	}

	public int getX()
	{
		return x;
	}

	public int getY()
	{
		return y;
	}
	
	public void setX(int newX)
	{
		if (x < 0) 
			x = 0;
		else if (x > 440)
			x = 0;
		else 
		    x = newX;
		
	}

	public void setY(int y)
	{
		if (y < 0) 
			this.y = 0;
		else if (y > 780)
			this.y = 0;
		else
			this.y = y;
	}

}

