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