#include <iostream>
using namespace std;
int main() {
double v1, t1, v2, t2, v3, t3;
cin >> v1 >> t1 >> v2 >> t2;
v3 = v1 + v2;
t3 = (v1 * t1 + v2 * t2) / v3;
cout << v3 << " " << t3 << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglkb3VibGUgdjEsIHQxLCB2MiwgdDIsIHYzLCB0MzsKCWNpbiA+PiB2MSA+PiB0MSA+PiB2MiA+PiB0MjsKCXYzID0gdjEgKyB2MjsKCXQzID0gKHYxICogdDEgKyB2MiAqIHQyKSAvIHYzOwoJY291dCA8PCB2MyA8PCAiICIgPDwgdDMgPDwgZW5kbDsKCXJldHVybiAwOwp9