#include <iostream>
#include <cstdlib>
#include <exception>

using namespace std;

void my_terminate() {
    cout << "my_terminate: program failed for unknown reason" << endl;
    exit(3);
}

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

int main() {

//    set_terminate(&my_terminate);

    float x, y, z;

//   terminate();

//   abort();
    
    cin >> x >> y;
    z = safe_div(x, y);
    cout << x << " / " << y << " = " << z << endl;

    cout << "good bye" << endl;

    return 0;
}
