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