#include <iostream>
#include <iomanip>
using namespace std;

int main() {
    double profit, principal;
    cin >> profit >> principal;
    try {
        if(principal == 0)throw 0;
        cout << fixed << setprecision(2) << profit / principal
    }
    catch(...) { cout << "-1"; }
    
}