#include <iostream>
using namespace std;

int main()
{
    long long t, w, h, n, s;
    cin >> t;
    while (t--)
    {
        s = 1;
        cin >> w >> h >> n;
        for (; w % 2 == 0 || h % 2 == 0;)
        {
            if (h % 2 == 0)
            {
                h = h / 2;
                s = s * 2;
            }
            if (w % 2 == 0)
            {
                w = w / 2;
                s = s * 2;
            }
        }
        if (s < n)
            cout << "No" << endl;
        else if (s >= n)
            cout << "Yes" << endl;
    }
    return 0;
}