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 CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int INF = 987654321;
double f[107][107][107];
int main() {
  ios::sync_with_stdio(false);
  cout.precision(10);
  cout << fixed;
  int R, S, P;
  cin >> R >> S >> P;
  memset(f, 0, sizeof(f));
  f[R][S][P] = 1.0;
  for (int r = R; r >= 0; --r) {
    for (int s = S; s >= 0; --s) {
      for (int p = P; p >= 0; --p) {
        int n = r + s + p;
        if (n < 2) continue;
        double x =
            1.0 * (r * (r - 1) + s * (s - 1) + p * (p - 1)) / n / (n - 1);
        if (r && p)
          f[r - 1][s][p] +=
              f[r][s][p] * (2 * r * p) / (n * (n - 1)) / (1.0 - x);
        if (r && s)
          f[r][s - 1][p] +=
              f[r][s][p] * (2 * r * s) / (n * (n - 1)) / (1.0 - x);
        if (s && p)
          f[r][s][p - 1] +=
              f[r][s][p] * (2 * s * p) / (n * (n - 1)) / (1.0 - x);
      }
    }
  }
  double res[3];
  memset(res, 0, sizeof(res));
  for (int r = 1; r <= R; ++r) res[0] += f[r][0][0];
  for (int s = 1; s <= S; ++s) res[1] += f[0][s][0];
  for (int p = 1; p <= P; ++p) res[2] += f[0][0][p];
  cout << res[0] << " " << res[1] << " " << res[2] << endl;
  return 0;
}