#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; while(n--){ int m=0; cin>>m; cout<<(m%400==0 || (m%4==0 && m%100!=0)?"a leap year":"a normal year")<<endl; } }