#include <iostream>
using namespace std;
int main()
{
int HowManyTimes, Year;
cin >> HowManyTimes;
for (int i = 1; i <= HowManyTimes; i++)
{
cin >> Year;
if (Year % 4 == 0 && Year % 100 != 0 || Year % 400 == 0)
{
cout << "a leap year" << endl;
} else
{
cout << "a normal year" << endl;
}
}
return 0;
}

















































