#include #include #include #include #include #include #include #include #include #include #define ALL(obj) (obj).begin(),(obj).end() #define RALL(obj) (obj).rbegin(),(obj).rend() #define P pair #define MOD 1000000007 #define INF 1012345678 #define NINF (-2147483647-1) #define LLINF 9223372036854775807 using ll = long long; using namespace std; int main() { int a, b; cin >> a >> b; if (a < b) swap(a, b); printf("%.7f\n", sqrt(a*a - b * b)); getchar(); getchar(); return 0; }