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.IOException;
import java.util.InputMismatchException;

public class BadLuckIsland {
    public static void main(String[] args) {
        FasterScanner sc = new FasterScanner();
        
        int R = sc.nextInt();
        int S = sc.nextInt();
        int P = sc.nextInt();
        
        double[][][] A = new double[101][101][101];
        double[][][] B = new double[101][101][101];
        double[][][] C = new double[101][101][101];
        
        double tempA, tempB, tempC, tempAB, tempBC, tempAC, total;
//        
//        int start = Math.min(Math.min(R, S), P);
//        
//        A[start][start][start] = 0.333333333333; 
//        B[start][start][start] = 0.333333333333; 
//        C[start][start][start] = 0.333333333333; 
//        
        for (int i = 0; i <= 100; i++) {
            for (int j = 0; j <= 100; j++) {
                for (int k = 0; k <= 100; k++) {
                    if ((i == j) && (j == k) && (i > 0)) {
                        A[i][j][k] = 0.333333333333; 
                        B[i][j][k] = 0.333333333333;
                        C[i][j][k] = 0.333333333333;
                    }
                    else if (i == 0) {
                        A[i][j][k] = 0;
                        B[i][j][k] = 1;
                        C[i][j][k] = 0;
                    }
                    else if (j == 0) {
                        A[i][j][k] = 0;
                        B[i][j][k] = 0;
                        C[i][j][k] = 1;
                    }
                    else if (k == 0) {
                        A[i][j][k] = 1;
                        B[i][j][k] = 0;
                        C[i][j][k] = 0;
                    }
                    else {
                        tempAB = i*j;
                        tempBC = j*k;
                        tempAC = i*k;
                        total = tempAB + tempBC + tempAB;
                        tempA = tempAB/total*A[i][j-1][k] + tempBC/total*A[i][j][k-1] + tempAC/total*A[i-1][j][k];
                        tempB = tempAB/total*B[i][j-1][k] + tempBC/total*B[i][j][k-1] + tempAC/total*B[i-1][j][k];
                        tempC = tempAB/total*C[i][j-1][k] + tempBC/total*C[i][j][k-1] + tempAC/total*C[i-1][j][k];
                        A[i][j][k] = tempA / (tempA + tempB + tempC);
                        B[i][j][k] = tempB / (tempA + tempB + tempC);
                        C[i][j][k] = tempC / (tempA + tempB + tempC);
                    }
                }
            }
        }
//        
//        for (int i = 2; i < 101; i++) {
//          
//        }
//        
//        
//        
//        int total = 0;
//        double tempA, tempB, tempC;
//        
//        for (int i = start + 1; i <= R; i++) {
//          total += 2 * i * start + start * start;
//          tempA = (double)(i*start / total);
//          tempB = (double)(start*start / total);
//          tempC = (double)(i*start / total);
//          
//                  
//        }
        
        System.out.println(A[R][S][P] + " " + B[R][S][P] + " " + C[R][S][P]);
        
    }
    
    public static class FasterScanner {
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;

        public int read() {
            if (numChars == -1)
                throw new InputMismatchException();
            if (curChar >= numChars) {
                curChar = 0;
                try {
                    numChars = System.in.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (numChars <= 0)
                    return -1;
            }
            return buf[curChar++];
        }

        public String nextLine() {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            } while (!isEndOfLine(c));
            return res.toString();
        }

        public String nextString() {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            } while (!isSpaceChar(c));
            return res.toString();
        }

        public long nextLong() {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            long res = 0;
            do {
                if (c < '0' || c > '9')
                    throw new InputMismatchException();
                res *= 10;
                res += c - '0';
                c = read();
            } while (!isSpaceChar(c));
            return res * sgn;
        }

        public int nextInt() {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            int res = 0;
            do {
                if (c < '0' || c > '9')
                    throw new InputMismatchException();
                res *= 10;
                res += c - '0';
                c = read();
            } while (!isSpaceChar(c));
            return res * sgn;
        }
            
        public int[] nextIntArray(int n) {
            int[] arr = new int[n];
            for (int i = 0; i < n; i++) {
                arr[i] = nextInt();
            }
            return arr;
        }
        
        public long[] nextLongArray(int n) {
            long[] arr = new long[n];
            for (int i = 0; i < n; i++) {
                arr[i] = nextLong();
            }
            return arr;
        }

        private boolean isSpaceChar(int c) {
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

        private boolean isEndOfLine(int c) {
            return c == '\n' || c == '\r' || c == -1;
        }
    }
}