def check(x):
cnt = 0
while x % 2 == 0:
cnt += 1
x //= 2
return 2 ** cnt
for _ in range(int(input())):
w, h, n = map(int, input().split())
if check(w) * check(h) >= n:
print('YES')
else:
print('NO')