#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int p1, p2, flag = 1;
  int f = 0;
  while (1) {
    if (flag == 1) {
      flag++;
      int i;
      if (s.empty() == true) {
        cout << "No"
             << "\n";
        return 0;
      }
      for (i = 0; i < s.size() - 1; i++) {
        if (s[i] == s[i + 1]) {
          f = 1;
          s.erase(s.begin() + i, s.begin() + (i + 2));
          break;
        }
      }
      if (f == 0 && i == s.size() - 1) {
        cout << "No"
             << "\n";
        return 0;
      }
      if (f == 2) {
        cout << "No"
             << "\n";
        return 0;
      }
    }
    if (flag == 2) {
      flag--;
      if (s.empty() == true) {
        cout << "Yes"
             << "\n";
        return 0;
      }
      for (int i = 0; i < s.size() - 1; i++) {
        if (s[i] == s[i + 1]) {
          f = 2;
          s.erase(s.begin() + i, s.begin() + (i + 2));
          break;
        }
      }
      if (f == 1) {
        cout << "Yes"
             << "\n";
        return 0;
      }
    }
  }
}
