#include <iostream>
#include <cmath>
using namespace std;
int main() {
double x, y;
cin >> x >> y;
cout << ( abs ( x ) - abs ( y ) ) / ( abs ( x ) + abs ( y ) ) << endl;
return 0;
}
ICAgICNpbmNsdWRlIDxpb3N0cmVhbT4KICAgICNpbmNsdWRlIDxjbWF0aD4KICAgIHVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAgICAgCiAgICBpbnQgbWFpbigpIHsKICAgIAlkb3VibGUgeCwgeTsKICAgICAgICBjaW4gPj4geCA+PiB5OwogICAgICAgIGNvdXQgPDwgKCBhYnMgKCB4ICkgLSBhYnMgKCB5ICkgKSAvICggYWJzICggeCApICsgIGFicyAoIHkgKSApIDw8IGVuZGw7CiAgICAJcmV0dXJuIDA7CiAgICB9