#include <iostream>#include <cmath>double FUNCTION_Z(int a, int x);int main(){ int a, x; std::cin >> a >> x; double Z = FUNCTION_Z(a, x); std::cout << "Z = " << Z << std::endl;}double FUNCTION_Z(int a, int x){ if (x > a) return a*(x + sqrt(x)); else return a - x*sqrt(x);}