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