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