from math import floor A, B = map(int, input().split()) if B > A: print('K') elif A >= B > A/3: print('S') else: limit = floor(A**2 / B**2) if limit % 2 == 0: print('K') else: print('S')