ps=["Sat","Sun"] pa=input().split() if pa[0] not in ps: print("8/31") elif pa[1] in ps: print("8/33") else: print("8/32")