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