#include <stdio.h> int main() { double x,a,y,b,z; scanf("%lf %lf% %lf %lf",&x,&a,&y,&b); z=(b*y-a*x)/(b-a); printf("%.2lf",z); return 0; }