#include using namespace std; int main() { int a, b; cin >> a >> b; int ma = max(a, b); int mi = min(a, b); cout << sqrt(ma*ma - mi * mi) << endl; return 0; }