#include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; #define rep(i, n) for (int i=0;i < (int)(n);i++) double dp[52][52][52][52]; int choose(int x){return x*(x-1)/2;} int main(){ int A,B,C,N; cin >> A >> B >> C >> N; dp[0][A][B][C] = 1.0; for (int n = 0; n < N;n++){ for (int a = 1; a <= A;a++){ for (int b = 1; b <= B;b++){ for (int c = 1; c <= C;c++){ dp[n+1][a-1][b][c] += double(choose(a))/choose(a+b+c)*dp[n][a][b][c]; dp[n+1][a][b-1][c] += double(choose(b))/choose(a+b+c)*dp[n][a][b][c]; dp[n+1][a][b][c-1] += double(choose(c))/choose(a+b+c)*dp[n][a][b][c]; dp[n+1][a][b][c] += double(choose(a)+choose(b)+choose(c))/choose(a+b+c)*dp[n][a][b][c]; } } } } double ansa = 0.0,ansb = 0.0,ansc = 0.0; for (int i = 1; i <= A;i++){ for (int j = 1; j <= B;j++){ for (int k = 1; k <= C;k++){ ansa += dp[N][i][j][k]*(A-i); ansb += dp[N][i][j][k]*(B-j); ansc += dp[N][i][j][k]*(C-k); } } } cout << ansa << " " << ansb << " " << ansc << endl; return 0; }