#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; long long gcd(long long a, long long b) { if (a % b == 0) { return (b); } else { return (gcd(b, a % b)); } } int main() { long double x; cin >> x; if (x == 0) { cout << "0/0" << endl; return 0; } long long d = x * 100000000; cout << d / gcd(100000000, d) << "/" << 100000000 / gcd(100000000, d) << endl; }