public static String convertToRoman(int i)
	{
		String Roman="";
		final String Hundreds[]={"C","CC","CCC","CD","D","DC","DCC","DCCC","CM","P"};
		final String Tens[]={"X","XX","XXX","XL","L","LX","LXX","LXXX","XC","C"};
		final String Ones[]={"I","II","III","IV","V","VI","VII","VIII","IX","X"};
		if(i>1000)
		{
			Roman="Y";
			i=i%1000;
		}
		if(i>=100)
		{
			final int x=i%100;
			final int y=(i-x)/100;
			if(y>0)
				Roman+=Hundreds[y-1];
			i=x;
		}
		if(i>=10)
		{
			final int x=i%10;
			final int y=(i-x)/10;
			if(y>0)
				Roman+=Tens[y-1];
		}
		i=i%10;
		if(i>0)
			Roman+=Ones[i-1];
		return Roman;
	}