#include <stdio.h> using namespace std; int main(){ float x,a,y,b,z; scanf("%f%f%f%f",&x,&a,&y,&b); z=(y*b-x*a)/(b-a); printf("%0.2f",z); return 0; }