#include
#include
using namespace std;
int main(){
int y;
cin>>y;
y=y%12;
switch (y){
case 4:{cout<<"Mouse"; break;}<br> case 5:{cout<<"Bull";break;}<br> case 6:{cout<<"Tiger";break;}<br> case 7:{cout<<"Rabbit";break;}<br> case 8:{cout<<"Dragon";break;}<br> case 9:{cout<<"Snake";break;}<br> case 10:{cout<<"Horse";break;}<br> case 11:{cout<<"Goat";break;}<br> case 0:{cout<<"Monkey";break;}<br> case 1:{cout<<"Cock";break;}<br> case 2:{cout<<"Dog";break;}<br> case 3:{cout<<"Pig";break;}<br> }
cin.get();
cin.get();
return 0;
}