#include #include using namespace std; using lint=int64_t; int main() { lint A,B; cin >> A >> B; if((A/B)%3==0) cout << "K"; else cout << "S"; cout << endl; return 0; }