#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n, m, i, a, b, q, d = 1;
  cin >> n >> m >> q;
  vector<set<long long>> r(n + 1), c(m + 1);
  for (i = 0; i < q; i++) {
    cin >> a >> b;
    if (a == 1 && b == 2) d = 2;
    r[a].insert(b);
    c[b].insert(a);
  }
  if (m == 1) d = 2;
  long long br = 1, x = 1, y = 1, lx, ly, bx = n + 1, by = m + 1, sx = 0,
            sy = 0;
  do {
    lx = x;
    ly = y;
    r[x].insert(sy);
    r[x].insert(by);
    c[y].insert(sx);
    c[y].insert(bx);
    if (d == 1) {
      auto it = r[x].upper_bound(y);
      br += *it - y - 1;
      y = *it - 1;
      d = 2;
      sx = x;
    } else if (d == 2) {
      auto it = c[y].upper_bound(x);
      br += *it - x - 1;
      x = *it - 1;
      d = 3;
      by = y;
    } else if (d == 3) {
      auto it = r[x].lower_bound(y);
      it--;
      br += y - *it - 1;
      y = *it + 1;
      d = 4;
      bx = x;
    } else {
      auto it = c[y].lower_bound(x);
      it--;
      br += x - *it - 1;
      x = *it + 1;
      d = 1;
      sy = y;
    }
  } while (lx != x || ly != y);
  if (br == n * m - q)
    cout << "Yes\n";
  else
    cout << "No\n";
}
