#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair pi; typedef pair pl; int main() { ll A, B; cin >> A >> B; if (A < B) { cout << "K" << endl; }else{ int num = (A * 2) / (B * 2); if (num == 1 || num % 2 == 0) cout << "S" << endl; else cout << "K" << endl; } return 0; }