import java.text.*;
public class TPIR
{
	private final static Object READY=new Object(), OUT=new Object(), WIN=new Object();
	
	public static void main (String[]args)
	{
		for(int HITBELOW1=70; HITBELOW1<=70; HITBELOW1+=5)	//when first player
		for(int HITBELOW2=70; HITBELOW2<=70; HITBELOW2+=5)	//when tied with p1
		for(int HITBELOW3=55; HITBELOW3<=55; HITBELOW3+=5)	//when beating p1 or p1 busts
		{
			int player1, player2, player3;
			Object status1=READY, status2=READY, status3=READY;
			double win1=0, win2=0, win3=0;
			for(int spin1=5; spin1<=100; spin1+=5)
			for(int spin2=5; spin2<=100; spin2+=5)
			for(int spin3=5; spin3<=100; spin3+=5)
			for(int spin4=5; spin4<=100; spin4+=5)
			for(int spin5=5; spin5<=100; spin5+=5)
			for(int spin6=5; spin6<=100; spin6+=5)
			{
				player1=spin1;
				player2=spin3;
				player3=spin5;
				
				if(player1<HITBELOW1)							//hit below ___
					player1+=spin2;
				if(player1<=100)
					status1=WIN;
				else
					status1=OUT;
				
				if(status1==WIN)
				{
					if(player2<player1)
						player2+=spin4;
					else if(player2==player1 && player2<HITBELOW2)		//hit when tied and below ___
							player2+=spin4;
					else if(player2<HITBELOW3)					//hit if in lead and below ___
						player2=player2;
				}
				else if(player2<HITBELOW3)						//should be same as above
						player2+=spin4;
				
				if(status1==OUT)
				{
					if(player2<=100)
						status2=WIN;
					else
						status2=OUT;
				}
				else
				{
					if(player1<player2 && player2<=100)
					{	status2=WIN; status1=OUT; }
					else if(player1==player2 && player2<=100)
						status2=WIN;
					else
						status2=OUT;
				}
				
				if(status1==OUT && status2==OUT)					//do not spin again if 1 and 2 busted
					player3=player3;
				else if(status1==WIN && status2==OUT)
				{
					if(player3<player1)
						player3+=spin6;
					else if(player3==player1 && player3<50)			//hit when tied with 1 player and below 50
						player3+=spin6;
				}
				else if(status2==WIN && status1==OUT)
				{
					if(player3<player2)
						player3+=spin6;
					else if(player3==player2 && player3<50)
						player3+=spin6;
				}
				else//2-way tie
				{
					if(player3<player2)
						player3+=spin6;
					else if(player3==player2 && player3<35)			//hit when tied with 2 players and below 35
						player3+=spin6;
				}
				
				if(player3>100)
					status3=OUT;
				else if(status2==WIN)
				{
					if(player3==player2)
						status3=WIN;
					else if(player2<player3 && player3<=100)
					{	status3=WIN; status2=OUT; status1=OUT; }
					else
						status3=OUT;
				}
				else if(status1==WIN)
				{
					if(player3==player1)
						status3=WIN;
					else if(player1<player3 && player3<=100)
					{	status3=WIN; status2=OUT; status1=OUT; }
					else
						status3=OUT;
				}
				else
					status3=WIN;
					
				int wins=0;
				if(status1==WIN) wins++;
				if(status2==WIN) wins++;
				if(status3==WIN) wins++;
				
				if(status1==WIN) win1+=1.0/wins;
				if(status2==WIN) win2+=1.0/wins;
				if(status3==WIN) win3+=1.0/wins;
			}
			DecimalFormat h=new DecimalFormat("##0");
			DecimalFormat f=new DecimalFormat("##,###,##0.000");
			System.out.print("H1="+h.format(HITBELOW1));
			System.out.print(" H2="+h.format(HITBELOW2));
			System.out.print(" H3="+h.format(HITBELOW3));
			
			System.out.print(" A="+f.format(win1));
			System.out.print(" B="+f.format(win2));
			System.out.println(" C="+f.format(win3));
		}
	}
}