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.StringTokenizer;

public class Main {

    static double[][][] propsR = new double[101][101][101];

    public static void main(String[] args) {
    Reader.init();
    int r = Integer.parseInt(Reader.next());
    int s = Integer.parseInt(Reader.next());
    int p = Integer.parseInt(Reader.next());
    double pR = propR(r, s, p);
    double pS = propS(r, s, p);
    double pP = 1 - pR - pS;
    System.out.printf("%.12f %.12f %.12f", pR, pS, pP);
    }

    static double killR(int r, int s, int p) {
    return 2 * r * p / ((double) (r + s + p) * (r + s + p - 1));
    }

    static double killS(int r, int s, int p) {
    return 2 * s * r / ((double) (r + s + p) * (r + s + p - 1));
    }

    static double killP(int r, int s, int p) {
    return 2 * p * s / ((double) (r + s + p) * (r + s + p - 1));
    }

    static double draw(int r, int s, int p) {
    int drawR = (r >= 2) ? r * (r - 1) : 0;
    int drawS = (s >= 2) ? s * (s - 1) : 0;
    int drawP = (p >= 2) ? p * (p - 1) : 0;
    return (drawR + drawS + drawP)
        / ((double) (r + s + p) * (r + s + p - 1));
    }

    static double propR(int r, int s, int p) {
    if (r == 0 || s == 0)
        return 0.0;
    if (p == 0)
        return 1.0;
    if (propsR[r][s][p] != 0.0)
        return propsR[r][s][p];
    if (r == s && s == p && r != 1)
        return propR(1, 1, 1);
    double propDraw = draw(r, s, p);
    double propNotDraw = 2
        * (propR(r - 1, s, p) * r * p + propR(r, s - 1, p) * s * r + propR(
            r, s, p - 1) * p * s)
        / ((double) (r + s + p) * (r + s + p - 1));
    double result = propNotDraw / (1 - propDraw);
    propsR[r][s][p] = result;
    if (propsR[s][p][r] != 0.0)
        propsR[p][r][s] = 1 - propsR[r][s][p] - propsR[s][p][r];
    return result;
    }

    static double propS(int r, int s, int p) {
    if (s == 0 || p == 0)
        return 0.0;
    if (r == 0)
        return 1.0;
    if (propsR[s][p][r] != 0.0)
        return propsR[s][p][r];
    if (r == s && s == p && r != 1)
        return propS(1, 1, 1);
    double propDraw = draw(r, s, p);
    double propNotDraw = 2
        * (propS(r - 1, s, p) * r * p + propS(r, s - 1, p) * s * r + propS(
            r, s, p - 1) * p * s)
        / ((double) (r + s + p) * (r + s + p - 1));
    double result = propNotDraw / (1 - propDraw);
    propsR[s][p][r] = result;
    return result;
    }

    // static double propP(int r, int s, int p) {
    // if (p == 0)
    // return 0.0;
    // if (s == 0)
    // return 1.0;
    // if (propsP[r][s][p] != 0.0)
    // return propsP[r][s][p];
    // double propPKillR = (r == 0) ? 0.0 : propP(r - 1, s, p)
    // * killR(r, s, p);
    // double propDraw = draw(r, s, p);
    // double propNotDraw = propPKillR + propP(r, s - 1, p) * killS(r, s, p)
    // + propP(r, s, p - 1) * killP(r, s, p);
    // double result = propNotDraw / (1 - propDraw);
    // propsP[r][s][p] = result;
    // return result;
    // }
}

class Reader {

    static private BufferedReader reader;
    static private StringTokenizer tokenizer;

    static void init() {
    reader = new BufferedReader(new InputStreamReader(System.in));
    tokenizer = new StringTokenizer("");
    }

    static String next() {
    while (!tokenizer.hasMoreTokens()) {
        String line;
        try {
        line = reader.readLine();
        } catch (IOException e) {
        return null;
        }
        if (line == null || "\n".equals(line))
        return null;
        tokenizer = new StringTokenizer(line);
    }
    return tokenizer.nextToken();
    }
}