import java.io.*; import java.util.*; public class Exercise60{ public static void main (String[] args) throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String str = new String(in.readLine()); String[] strArray = str.split(" "); long a = Long.parseLong(strArray[0]); long b = Long.parseLong(strArray[1]); if (b > a){ System.out.println("K"); }else{ System.out.println("S"); } } }