#include using namespace std; using i64 = int64_t; int main() { string S; cin >> S; if (S[0] == S[1]) { cout << "Yes" << endl; } else { cout << "NO" << endl; } return 0; }