print"8/3",!/^S/||/S/g+1for<>