s1, s2 = map(str, input().split()) S = {'Sat', 'Sun'} if s1 in S and s2 in S: print('8/33') elif s1 in S and s2 not in S: print('8/32') else: print('8/31')