a,b=input().split() if a=='Sat' or a=='Sun': print('8/32') elif (a=='Sat' or a=='Sun')and(b=='Sat' or b=='Sun'): print('8/33') else: print('8/31')