#include #include #include typedef long long ll; int main(void) { std::cin.tie(0); std::ios::sync_with_stdio(false); std::cout << std::fixed << std::setprecision(8); int a, b; std::cin >> a >> b; if (a==b) {std::cout << sqrt(a*a*2) << std::endl; return 0;} if (a>b) {int tmp = a; a = b; b = tmp;} std::cout << sqrt(b*b-a*a) << std::endl; return 0; }