A, B = map(int, input().split()) if B > A: print("K") else: R = A - B if R < B: print("S") else: print("S")