#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int test;
  cin >> test;
  while (test--) {
    long long int n, k;
    cin >> n >> k;
    long long int d1, d2;
    cin >> d1 >> d2;
    vector<long long int> p1 = {d1, -d1};
    vector<long long int> p2 = {d2, -d2};
    bool b = 0;
    for (auto i : p1) {
      for (auto j : p2) {
        long long int rem = k - (i + 2 * j);
        if (rem < 0) {
          continue;
        } else if (rem % 3) {
          continue;
        } else {
          rem /= 3;
          long long int s1 = rem + i + j;
          long long int s2 = rem + j;
          long long int s3 = rem;
          if (s1 >= 0 && s2 >= 0 && s3 >= 0) {
            long long int maxi = max(s1, max(s2, s3));
            long long int left = maxi - s1 + maxi - s2 + maxi - s3;
            long long int temp = n - k - left;
            if (temp < 0) {
              continue;
            } else if (temp % 3) {
              continue;
            } else {
              b = 1;
              break;
            }
          } else {
            continue;
          }
        }
      }
    }
    if (b == 0) {
      cout << "no" << endl;
    } else {
      cout << "yes" << endl;
    }
  }
}
