#include using namespace std; int main(){ int a,b; cin>>a>>b; if(a!=b)printf("%.10f\n", sqrt(pow(max(a,b),2)-pow(min(a,b),2))); else printf("%.10f\n", sqrt(a*a+b*b)); return 0; }