x = ['S' in s for s in input().split()] if x[0] and x[1]: print('8/33') elif x[0]: print('8/32') else: print('8/31')