#机A a,b=gets.split(" ").map(&:to_i) if ab ? "K" : "S"