a,b=map(str,input().split()) if a=='sat':a='sun' if b=='sat':b='sun' if a==b and a=='sun':print('8/33') elif a=='sun' and b!='sun':print('8/32') else:print('8/31')