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.InputStreamReader;
import java.util.Arrays;
import java.util.LinkedList;

public class D {
	static InputStreamReader isr = new InputStreamReader(System.in);
	static BufferedReader br = new BufferedReader(isr);

	static int[] readIntArray() throws IOException {
		String[] v = br.readLine().split(" ");
		int[] ans = new int[v.length];

		for (int i = 0; i < ans.length; i++) {
			ans[i] = Integer.valueOf(v[i]);
		}

		return ans;
	}

	static int[] rsp;
	static int MAX = 101;
	static double[][][] states = new double[MAX][MAX][MAX];
	static boolean[][][] visited = new boolean[MAX][MAX][MAX];

	public static void main(String[] args) throws IOException {
		rsp = readIntArray();
		states[rsp[0]][rsp[1]][rsp[2]] = 1;

		LinkedList<Integer> rstack = new LinkedList<Integer>();
		rstack.addLast(rsp[0]);
		LinkedList<Integer> sstack = new LinkedList<Integer>();
		sstack.addLast(rsp[1]);
		LinkedList<Integer> pstack = new LinkedList<Integer>();
		pstack.addLast(rsp[2]);
		visited[rsp[0]][rsp[1]][rsp[2]] = true;

		while (!rstack.isEmpty()) {
			int cr = rstack.removeFirst();
			int cs = sstack.removeFirst();
			int cp = pstack.removeFirst();
			fillOut(cr, cs, cp);

			if (cr > 0 && !visited[cr - 1][cs][cp]) {
				rstack.addLast(cr - 1);
				sstack.addLast(cs);
				pstack.addLast(cp);
				visited[cr-1][cs][cp] = true;
			}
			if (cs > 0 && !visited[cr][cs-1][cp]) {
				rstack.addLast(cr);
				sstack.addLast(cs - 1);
				pstack.addLast(cp);
				visited[cr][cs-1][cp] = true;
			}
			if (cp > 0 && !visited[cr][cs][cp-1]) {
				rstack.addLast(cr);
				sstack.addLast(cs);
				pstack.addLast(cp - 1);
				visited[cr][cs][cp-1] = true;
			}
		}

		double[] ans = new double[3];
		for (int i = 1; i < MAX; i++) {
			ans[0] += states[i][0][0];
			ans[1] += states[0][i][0];
			ans[2] += states[0][0][i];
		}

		System.out.println(ans[0] + " " + ans[1] + " " + ans[2]);

//		for (int i = 0; i < MAX; i++) {
//			for (int j = 0; j < MAX; j++) {
//				for (int j2 = 0; j2 < MAX; j2++) {
//					System.out.println(i + " " + j + " " + j2 + " = " + states[i][j][j2]);
//				}
//			}
//		}

//		System.out.println(Arrays.toString(getProbs(1, 0, 1)));
	}

	static void fillOut(int r, int s, int p) {
		if (r < 0 || s < 0 || p < 0)
			return;		

		double[] probs = getProbs(r, s, p);
		double all = probs[0] + probs[1] + probs[2];
		if (r > 0 && s > 0) {
			double prob = probs[0] / all;
			states[r][s - 1][p] += prob * states[r][s][p];
		}

		if (r > 0 && p > 0) {
			double prob = probs[1] / all;
			states[r - 1][s][p] += prob * states[r][s][p];
		}

		if (s > 0 && p > 0) {
			double prob = probs[2] / all;
			states[r][s][p - 1] += prob * states[r][s][p];
		}
	}

	private static double[] getProbs(int r, int s, int p) {
		double[] ans = new double[3];

		ans[0] = ch(r + s) - ch(r) - ch(s);
		ans[1] = ch(r + p) - ch(r) - ch(p);
		ans[2] = ch(p + s) - ch(p) - ch(s);

		return ans;
	}

	static double ch(int n) {
		if (n <= 1)
			return 0;
		return (n * (n - 1)) / 2d;
	}

}