#yuki841 l=raw_input().split() if (l[0]=='Sat' or l[0]=='Sun') and not (l[1]=='Sat' or l[1]=='Sun'): print '8/32' elif (l[0]=='Sat' or l[0]=='Sun') and (l[1]=='Sat' or l[1]=='Sun'): print '8/33' else: print '8/31'