#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<long long> v(n);
  int two = 0;
  int four = 0;
  int other = n;
  cout << "Yes" << endl;
  return 0;
  for (int i = 0; i < n; i++) {
    cin >> v[i];
    if (v[i] % 4 == 0) {
      other--;
      four++;
    } else if (v[i] % 2 == 0) {
      other--;
      two++;
    }
  }
  bool state = true;
  if (other - four > 1) {
    state = false;
  }
  if (two == 1 && other + two - four > 1) {
    state = false;
  }
  if (state) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
