#include int main(void) { // initialization double a, b, c, d; scanf("%lf %lf %lf %lf", &a, &b, &c, &d); // print answer printf("%lf", (a + b) * (a - b) + c / d); return 0; }