l=input().split() if ('Sun'in l and'Sat'in l)or l[0]==l[1]=='Sun'or l[0]==l[1]=='Sat': print('8/33') elif l[0]=='Sat'or l[0]=='Sun': print('8/32') else: print('8/31')