S1, S2 = input().split() if 'S' in S1 and 'S' in S2: x = 2 elif 'S' in S1: x = 1 else: x = 0 print('8/' + str(31+x))