a=input().split() c=0 for i in a: if i=='Sun' or "Mon": c+=1 print("8/33" if c==2 else "8/32" if c==2 else "8/31")