a=int(input())
year=0
for i in range(a):
k="a normal year"
year=int(input())
if year%4==0:
k="a leap year"
if year%100==0:
k="a normal year"
if year%400==0:
k="a leap year"
print(k)