Write a program to check whether the given year is leap year or not. The convention rules of leap year is as stated in Wikipedia.
The first line contains a single integer T, the number of test cases. T lines follow containing a year each in the format yyyy.
Output YES or NO for each test case in seperate line.
T < 10000
1000 <= year <= 9999
Problem Source : C Programming Lab Sheet
Problem Tester : Shikhar Sharad