#include<bits/stdc++.h>
using namespace std;

int main() {
  int t;
  cin >> t;
  
  while (t--) {
    int a, b, n;
    cin >> a >> b >> n;
    
    // 1 * 3 的物块只能放偶数个,如果只放奇数个该物块的话是无法完整填满匣子的
    // 我们将偶数个1 * 3物块全都并排放置,这样可以尽可能多的放置该物块
    int temp = n / 3;
    int sum = n * 2 - min(temp, b / 2) * 6;
    
    // 物块可以有剩余
    if (sum <= 2 * a) {
      cout << "YES" << '\n';
    }
    else {
      cout << "NO" << '\n';
    }
  }
}