Tích số lớn nhất

View as PDF

Time limit: 1.0s , Memory limit: 250M , Points: 30 (partial)

REF: FreeContest

Hãy tìm một bộ ba số thực (x,y,z) thỏa 0x,y,z;x+y+zS sao cho tích số xa×yb×zc đạt giá trị lớn nhất.

Input

Dòng duy nhất chứa bốn số nguyên a,b,c,S thỏa 1S1000;0a,b,c1000.

Output

In ra x,y,z cần tìm với 6 chữ số sau dấu chấm thập phân.

Samples

Sample Input 1
Copy
1 1 1 3
Sample Output 1
Copy
1.000000 1.000000 1.000000

Comments