n, k = gets.split.map(&:to_i) x = (n / k - 1) / 2 if x < 0 puts "K" else c = 6 * (2 ** x - 1) + 1 puts "KS"[c % 2] end