a,b;main(i){for(;~scanf("%d",&b);a=i--?a:b);b=!printf("%d/%d",b,a);}