#include using namespace std; #define rep(i,a,b) for(int i=a;i> A >> B) { if (solve() % 2 == 0) cout << "K" << endl; else cout << "S" << endl; } }