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