#include #include using namespace std; using lint=int64_t; int main() { string N,M; cin >> N >> M; if((N[N.size()-1]-'0'+M[M.size()-2]-'0')%2==0) cout << "Yes"; else cout << "No"; cout << endl; return 0; }