#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e6 + 7;
vector<char> v;
char arr[MAXN];
int main() {
  int n, i, t, ans;
  while (cin.getline(arr, MAXN)) {
    v.clear();
    for (i = 0; arr[i] != '\0'; i++) v.push_back(arr[i]);
    ans = 0;
    for (i = 0; v.size() > i + 1; i++) {
      if (v[i] == v[i + 1]) {
        ans++;
        v.erase(v.begin() + i);
        v.erase(v.begin() + i);
        if (v.size() == 1) break;
        i -= 2;
      }
    }
    if (ans % 2 == 0)
      printf("No\n");
    else
      printf("Yes\n");
  }
  return 0;
}
