#include using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define P pair ll gcd(ll a, ll b) { return (a % b) ? gcd(b,a%b) : b; } int main() { double x; cin >> x; const ll c = 1e9; x *= c; x += 0.5; ll g = gcd((ll)x, c); cout << x/g << "/" << c/g << endl; }