#include <iostream>
using namespace std;
int main() {
int n,y;
int a=1;
for(cin>>n;n>0;n--&&a++){
cin>>y;
if((y%4==0&&y%100!=0)||y%400==0)
cout<<"Case "<<a<<": a leap year\n";
else
cout<<"Case "<<a<<": a normal year\n";
}
}
限制Y的數量,將閏年的條件帶入