#include #include #include #include #include #include #include using ll = long long; #define rep(i,n) for(int i = 0;i=0;i++) #define ALL(a) a.begin(),a.end() using namespace std; ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } int main(){ long double a; ll t = 1e8; cin >> a; a += 0.000000001; a *= t; ll A = (ll)a, g = gcd(a, t); cout << A/g <<"/" << t/g << endl; }