#include <iostream>
#include <cmath>
using namespace std;
int main()
{
string s;cin >> s;
int t = 0;
int l = s.length() - 1;
for (int i = 0;i < l;i++)
{
if (s[i] == s[i+1])
{
t = abs(t-1);
s.erase(i,2);
l -= 2;
i -= 2;
}
}
if (t == 0)
cout << "NO";
else
cout << "YES";
}