#include <iostream>
#include <string.h>
#include <stdio.h>
#include <math.h>
#define lld long long
using namespace std;
int main()
{
string s;
int kase=1;
while(cin>>s)
{
if(s=="*")
break;
if(s=="Hajj")
cout<<"Case "<<kase++<<": Hajj-e-Akbar\n";
else if(s=="Umrah")
cout<<"Case "<<kase++<<": Hajj-e-Asghar\n";
}
return 0;
}