#include <iostream>

using namespace std;

float safe_div(float x, float y) {
    if (y == 0) 
        throw "division by 0 is prohibited";
        
    return x / y;
}

int main() {
    float x, y, z;

    try {
        cin >> x >> y;

        z = safe_div(x, y); 
       
        cout << x << " / " << y << " = " << z << endl;
    } catch (const char *str) {
        cerr << "exception: " << str << endl;
    }
    
    cout << "good bye" << endl;

    return 0;
}
