#coding:utf-8 a,b = input().split() check = ["Sat","Sun"] if a in check: if b in check: print("8/33") else: print("8/32") else: print("8/31")