#include <bits/stdc++.h>   using namespace std;   int main() {     string one, two;     cin >> one >> two;     int odin = 0, dva = 0;     for (int i = 0; i < one.length(); i++)       if (one[i] ==  1 ) odin++;     for (int j = 0; j < two.length(); j++)       if (two[j] ==  1 ) dva++;     if (odin & 1 && odin + 1 >= dva)       cout <<  YES ;     else if (!(odin & 1) && odin >= dva)       cout <<  YES ;     else       cout <<  NO ;     return 0;   }   