#!/usr/bin/env python # -*- coding: utf-8 -*- import math def f(): a, b = map(int,input().split()) if(a < b): return "K" elif(a == b): return "S" a *= a b *= b if(math.ceil(a / b) % 2 == 0): return "K" return "S" print(f())