Gambling
题号:NC52813
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 32 M,其他语言64 M
Special Judge, 64bit IO Format: %lld

题目描述

In ICPCCamp, gambling is conducted as follow.
A player will draw balls from an opaque bag containing a red balls, b green balls and c blue balls initially.
Balls in the bag will be drawn in equal probability while drawn balls won't be put back into the bag.
The player continues the process until he collects all a red balls, or all b green balls, or all c blue balls.
He ends up with First Prize if he collects a red balls, or Second Prize if he collects b green balls, or Third Prize otherwise.
Bobo is going to take part in the above gambling.
Therefore, it is very important for him to work out the probability of winning each prize.

输入描述:

The input contains at most 40 sets. For each set:
Three integers a, b, c ().

输出描述:

For each set, three irreducible fractions p_A, p_B, p_C denote the probability of winning First Price, Second Price, and Third Price, respectively.
示例1

输入

复制
1 1 1

输出

复制
1/3 1/3 1/3
示例2

输入

复制
1 2 3

输出

复制
7/12 4/15 3/20