import sys from collections import defaultdict, Counter, deque from itertools import permutations, combinations, product, combinations_with_replacement, groupby, accumulate import operator from math import sqrt, gcd, factorial # from math import isqrt, prod,comb # python3.8用(notpypy) #from bisect import bisect_left,bisect_right #from functools import lru_cache,reduce #from heapq import heappush,heappop,heapify,heappushpop,heapreplace #import numpy as np #import networkx as nx #from networkx.utils import UnionFind #from numba import njit, b1, i1, i4, i8, f8 #from scipy.sparse import csr_matrix #from scipy.sparse.csgraph import shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson, NegativeCycleError # numba例 @njit(i1(i4[:], i8[:, :]),cache=True) 引数i4配列、i8 2次元配列,戻り値i1 def input(): return sys.stdin.readline().rstrip() def divceil(n, k): return 1+(n-1)//k # n/kの切り上げを返す def yn(hantei, yes='Yes', no='No'): print(yes if hantei else no) def main(): a,b,c,n=map(int, input().split()) dpa=[[[[0.0]*c for _ in range(b)] for _ in range(a)] for _ in range(n+1)] dpb=[[[[0.0]*c for _ in range(b)] for _ in range(a)] for _ in range(n+1)] dpc=[[[[0.0]*c for _ in range(b)] for _ in range(a)] for _ in range(n+1)] for nn in range(1,n+1): for aa in range(a): for bb in range(b): for cc in range(c): num=aa+bb+cc+3 aprob=(aa*(aa+1))/(num*(num-1)) bprob=(bb*(bb+1))/(num*(num-1)) cprob=(cc*(cc+1))/(num*(num-1)) noprob=1-aprob-bprob-cprob dpa[nn][aa][bb][cc]=noprob*dpa[nn-1][aa][bb][cc]+aprob*(dpa[nn-1][aa-1][bb][cc]+1)+bprob*dpa[nn-1][aa][bb-1][cc]+cprob*dpa[nn-1][aa][bb][cc-1] dpb[nn][aa][bb][cc]=noprob*dpb[nn-1][aa][bb][cc]+aprob*dpb[nn-1][aa-1][bb][cc]+bprob*(dpb[nn-1][aa][bb-1][cc]+1)+cprob*dpb[nn-1][aa][bb][cc-1] dpc[nn][aa][bb][cc]=noprob*dpc[nn-1][aa][bb][cc]+aprob*dpc[nn-1][aa-1][bb][cc]+bprob*dpc[nn-1][aa][bb-1][cc]+cprob*(dpc[nn-1][aa][bb][cc-1]+1) print(dpa[-1][-1][-1][-1],dpb[-1][-1][-1][-1],dpc[-1][-1][-1][-1]) if __name__ == '__main__': main()