#include using namespace std; int main() { char a, b, c; cin >> a >> b >> c; if (a == b && a != c) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }