public class Pair
{
	private int first;
	private int second;
	
	Pair(int x, int  y)
	{
		first = x;
		second = y;
	}

	int getFirst()
	{
		return first;
	}

	int getSecond()
	{
		return second;
	}

}

Create Pair.java