#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define FOR(I,A,B) for(int I = (A); I < (B); ++I) typedef long long ll; int main(){ int a,b; cin>>a>>b; int c = max(a,b)*max(a,b)-min(a,b)*min(a,b); printf("%.08lf\n", sqrt(c)); return 0; }