#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  if (s[0] == s[1] and s[0] == s[2])
    cout << "NO\n";
  else
    cout << "YES\n";
  return 0;
}
