//ethan_h #include using namespace std; #define ll long long /*void test(){ ll n,t;cin>>n>>t; ll s=0; //string s;cin>>s; vectora(n); for(ll i=0;i>a[i]; s+=a[i];} if(s/t){ int p; p=s/t; t-=(p*t); for(ll i=0;i=a[i]){ p++; t-=a[i]; } } cout<=a[i]){ p++; t-=a[i]; } } cout<>x; int p=1; while(x-int(x)!=0){ x*=double(10); p*=10; } int k=int(x); int s=__gcd(k,p); k/=s; p/=s; cout<