a,b=map(int,input().split()) if a < b: print('K') elif a < b*3: print('S') else: print('S' if int(a/b) == a/b else 'K')