#include<stdio.h>
int main(void)
{
double a,b,c,d,result;
scanf("%lf %lf %lf %lf",&a,&b,&c,&d);
result=(a+b)*(a-b)+c/d;
printf("%lf",result);
return 0;
}
#include<stdio.h>
int main(void)
{
double a,b,c,d,result;
scanf("%lf %lf %lf %lf",&a,&b,&c,&d);
result=(a+b)*(a-b)+c/d;
printf("%lf",result);
return 0;
}