a = int(input()) lit = []
for i in range(a):
b = int(input()) if (b % 4 == 0 and b % 100 != 0) or b % 400 == 0: print('Yes') else: print('No')