io.write("8/3", (function (s) return s:sub(1,1)=="S" and s:sub(5,5)=="S" and 3 or s:sub(1,1)=="S" and 2 or 1 end)(io.stdin:read("*l")), "\n")