s1,s2=map(input().split()) ans=0 if s1=="Sun" or s1=="Sat": ans+=1 if s2=="Sun" or s2=="Sat": ans+=2 if ans==1: print("8/32") elif ans==3: print("8/33") else: print("8/31")