s,t=input().split() L=[Sat,Sun] if s in L and not t in L: print("8/32") elif s in L and t in L: print("8/33") else: print("8/31")