a,b = map(int, input().split()) if a+b == a*b: print("E") if a+b>a*b: print("S") if a+b