x = [1 if 'S' in s else 0 for s in input().split()] a = 0 if x[0]:a+=1 if x[1]:a+=1 print('8/3'+'123'[a])