a,b=gets.split.map &:to_I puts (if a+b>a*b then "S" elsif a+b