n = list(map(str,input().split())) if (n[0]=='Sat' and n[1]=='Sun') or (n[0]=='Sun' and n[1]=='Sat') or (n[0]=='Sat' and n[1]=='Sat'): print("8/33") elif n[0]=='Sun' or n[0]=='Sat': print("8/32") else: print("8/31")