main(a,b,C,F){double V;while(scanf("%d/%d",&a,&b)>1){V=(float)a/b;printf("%d/%d =",a,b);F=1;for(C=1;C<2000;C++)(float)1/C