#include #define pt(sth) cout << sth << "\n" #define itr(x,c) for(auto x=c.begin();x!=c.end();x++) #define ritr(x,c) for(auto x=c.rbegin();x!=c.rend();x++) #define all(a) (a.begin()),(a.end()) #define rall(a) (a.rbegin()),(a.rend()) using namespace std; #include using namespace atcoder; typedef long long ll; typedef pair pll; templatebool chmax(T &a, const T &b) {if(abool chmin(T &a, const T &b) {if(b>a[i]; typedef vector v1d; typedef vector v2d; typedef vector v3d; typedef vector v4d; ll gcd(ll a,ll b){ if(b==0) return a; else return gcd(b,a%b); } int main(void) { ll i,j,k; /* ll N;cin>>N; v1d a(N); for(i=0;i>a[i]; */ double x;cin>>x; if(x==0){ pt("0/1"); return 0; } ll c=1; while(x<1){ x*=10; c*=10; } ll t=x; ll g=gcd(t,c); t/=g;c/=g; pt(t<<"/"<