t = int(input()) for _ in range(t): n = int(input()) print("Yes" if (n % 4 == 0 and n % 100 != 0) or n % 400 == 0 else "No")