#include #define int long long using namespace std; signed main(){ string X;cin>>X; int f=X.end()-find(X.begin(),X.end(),'.')-1; if(f==-1)X+='.',f++; for(int i=f;i<8;i++)X+='0'; X.erase(find(X.begin(),X.end(),'.')); int x=stoll(X),y=100000000; int n=gcd(x,y); x/=n;y/=n; cout<