#include <iostream>
using namespace std;
int a,b;
int main(){
while(cin>>a){
b=a%12;
if(a<0){
b=12+b;
}
if(b<6){
if(b<3){
if(b==0)
cout<<"豬"<<endl;
else if(b==1)
cout<<"鼠"<<endl;
else if(b==2)
cout<<"牛"<<endl;
}else{
if(b==3)
cout<<"虎"<<endl;
else if(b==4)
cout<<"兔"<<endl;
else if(b==5)
cout<<"龍"<<endl;
}
}else{
if(b<9){
if(b==6)
cout<<"蛇"<<endl;lse if(b==7)
cout<<"馬"<<endl;
else
cout<<"羊"<<endl;
}else{
if(b==9)
cout<<"猴"<<endl;
else if(b==10)
cout<<"雞"<<endl;
else if(b==11)
cout<<"狗"<<endl;
}
}
}
}
//Why wa in line 1 ?
//Please help me!!