from sys import stdin ## input functions for me def ria(sep = ''): if sep == '' : return list(map(int, input().split())) else: return list(map(int, input().split(sep))) def rsa(sep = ''): if sep == '' : return input().split() else: return input().split(sep) def ri(): return int(input()) def rd(): return float(input()) def rs(): return input() ## ## main ## ss = rsa() inc1 = 1 if (ss[0] == "Sun" or ss[0] == "Sat") else 0 inc2 = 1 if (inc1 == 1 and (ss[1] == "Sun" or ss[1] == "Sat")) else 0 res = "8/" + str(31 + inc1 + inc2) print(res)