#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; ll g = gcd((ll)x, c); cout << x/g << "/" << c/g << endl; }