var s = readLine stdin echo if s[0] == s[1] and s[0] != s[2]: "Yes" else: "No"