s = input() d = ('S' in s[:3])*1 n = ('S' in s[-3:])*1 print("8/3",1+d+d*n,sep='')