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