Problem: The Bad Luck Island is inhabited by three kinds of species: r rocks, s scissors and p papers. At some moments of time two random individuals meet (all pairs of individuals can meet equiprobably), and if they belong to different species, then one individual kills the other one: a rock kills scissors, scissors kill paper, and paper kills a rock. Your task is to determine for each species what is the probability that this species will be the only one to inhabit this island after a long enough period of time.

Input

The single line contains three integers r, s and p (1 ≤ r, s, p ≤ 100) — the original number of individuals in the species of rock, scissors and paper, respectively.

Output

Print three space-separated real numbers: the probabilities, at which the rocks, the scissors and the paper will be the only surviving species, respectively. The answer will be considered correct if the relative or absolute error of each number doesn't exceed 10 - 9.

Examples

Input

2 2 2


Output

0.333333333333 0.333333333333 0.333333333333


Input

2 1 2


Output

0.150000000000 0.300000000000 0.550000000000


Input

1 1 3


Output

0.057142857143 0.657142857143 0.285714285714

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
	
	public static void main(String[] args) throws Throwable {
		Scanner sc = new Scanner(System.in);
		int R = sc.nextInt() , S = sc.nextInt() , P = sc.nextInt();
		double dp[][][][] = new double[R+1][S+1][P+1][3];
		
		for(int i = 1;i<=R;i++)		
			for(int j = 0;j<=S;j++)
				dp[i][j][0][0] = 1;
		
		for(int i = 1;i<=S;i++)		
			for(int j = 0;j<=P;j++)
				dp[0][i][j][1] = 1;
		
		for(int i = 0;i<=R;i++)		
			for(int j = 1;j<=P;j++)
				dp[i][0][j][2] = 1;
		
		for(int r = 1;r<=R;r++)
			for(int s = 1;s<=S;s++)
				for(int p = 1;p<=P;p++)
					for(int t = 0; t < 3;t++)
					{
						int rs = r*s , rp = r*p , sp = s*p;
						int total = rs + rp + sp;
						double pr = 1.0*rp/total , ps = 1.0*rs/total , pp = 1.0*sp/total;
						dp[r][s][p][t] += ps*dp[r][s-1][p][t];
						dp[r][s][p][t] += pr*dp[r-1][s][p][t];
						dp[r][s][p][t] += pp*dp[r][s][p-1][t];
					}
		for(double i : dp[R][S][P])
			System.out.print(i+" ");
		System.out.println();
	}
	
	static class Scanner 
	{
		StringTokenizer st;
		BufferedReader br;

		public Scanner(InputStream s){	br = new BufferedReader(new InputStreamReader(s));}

		public String next() throws IOException 
		{
			while (st == null || !st.hasMoreTokens()) 
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

		public int nextInt() throws IOException {return Integer.parseInt(next());}
		
		public long nextLong() throws IOException {return Long.parseLong(next());}

		public String nextLine() throws IOException {return br.readLine();}
		
		public double nextDouble() throws IOException
		{
			String x = next();
			StringBuilder sb = new StringBuilder("0");
			double res = 0, f = 1;
			boolean dec = false, neg = false;
			int start = 0;
			if(x.charAt(0) == '-')
			{
				neg = true;
				start++;
			}
			for(int i = start; i < x.length(); i++)
				if(x.charAt(i) == '.')
				{
					res = Long.parseLong(sb.toString());
					sb = new StringBuilder("0");
					dec = true;
				}
				else
				{
					sb.append(x.charAt(i));
					if(dec)
						f *= 10;
				}
			res += Long.parseLong(sb.toString()) / f;
			return res * (neg?-1:1);
		}
		
		public int[] nexIntArray() throws Throwable
		{
			st = new StringTokenizer(br.readLine());
			int[] a = new int[st.countTokens()];
			for(int i = 0; i < a.length;i++)a[i]=nextInt();
			return a;
		}
		
		public boolean ready() throws IOException {return br.ready();}


	}
}