from sys import stdin def main(): S1, S2 = input().split() if 'S' in S1 and 'S' in S2: print('8/33') elif 'S' in S1: print('8/32') else: print('8/31') input = lambda: stdin.readline().rstrip() main()