a, b = io.read("*n", "*n") if(a < b) then print("K") else print("S") end