a, b = map(int, input().split()) ans = int(a/b**2)%2 if ans == 1: print('S') else: print('K')