package main import . "fmt" func main() { var s string Scan(&s) if s[0]==s[1]&&s[0]!=s[2] { Println("Yes") } else { Println("No") } }