#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int cnt = (0); cnt < (t); ++cnt) {
    int64_t n, k, d1, d2;
    cin >> n >> k >> d1 >> d2;
    int s[] = {1, -1};
    bool ok = false;
    for (int i = (0); i < (2); ++i)
      for (int j = (0); j < (2); ++j) {
        int64_t sum = s[i] * d1 + s[j] * d2;
        int64_t dgames = k - sum;
        if (dgames % 3 != 0) continue;
        int64_t w[3];
        w[0] = dgames / 3 + s[i] * d1;
        w[1] = dgames / 3;
        w[2] = dgames / 3 + s[j] * d2;
        sort(begin(w), begin(w) + 3);
        if (w[0] < 0) continue;
        int64_t nd = w[2] * 2 - w[0] - w[1];
        if (nd <= n - k && (n - k - nd) % 3 == 0) {
          ok = true;
          break;
        }
      }
    if (ok)
      cout << "yes" << endl;
    else
      cout << "no" << endl;
  }
  return 0;
}
