#include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(nullptr);     string a, b;     cin >> a >> b;     int one[2];     one[0] = one[1] = 0;     for (char ch : a) one[0] += ch ==  1  ? 1 : 0;     for (char ch : b) one[1] += ch ==  1  ? 1 : 0;     if (one[0] + (one[0] & 1) >= one[1])       cout <<  YES ;     else       cout <<  NO ;     return 0;   }   