#include <bits/stdc++.h>
using namespace std;
int main(){
int a, b, c, d;
scanf("%d %d %d %d", &a, &b ,&c, &d);
printf("%.2f", (c * d - a * b) * 1.0 / (d - b));
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main(){
int a, b, c, d;
scanf("%d %d %d %d", &a, &b ,&c, &d);
printf("%.2f", (c * d - a * b) * 1.0 / (d - b));
return 0;
}