a,b=input().split() print("8/"+str(31+(2if"S"in a and"S"in b else"S"in a)))