#include #include using namespace std; int main() { string s; cin >> s; string delimiter = "/"; size_t pos = 0; string t; while ((pos = s.find(delimiter)) != string::npos) { t = s.substr(0, pos); s.erase(0, pos + delimiter.length()); } cout << fixed << setprecision(20); cout << stof(t) / stof(s) << endl; }