#include "iostream"
#include "algorithm"
#include "vector"
#include "queue"
using namespace std;
#define int long long
#define all(arr) arr.begin(), arr.end()
#define _lg(x) (63 - __builtin_clzll(x))
constexpr int maxn = 200'010;
constexpr int mod = 1'000'000'007;
int arr[maxn]{};
void solve() {
    int t;
    int n, m; cin >> t >> n >> m;
    int x = 0;
    for (int i = 0; i < n; i++) {
        int a; cin >> a;
        x |= (1 << (a & 1));
    }
    cout << (x == 3 ? "No\n" : "Yes\n") << '\n';
}

signed main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int t = 1; //cin >> t;
    while (t--) {
        solve();
    }
}