#include <iostream>
#include <math.h>
using namespace std;
int main () {
int x,y;
string a[] = {"鼠","牛","虎","兔","龍","蛇","馬","羊","猴","雞","狗","豬"};
while( cin >> x ) {
y = 0;
if( x < 0 ) y = 13;
x = x % 12 - 1 + y;
cout << a[x] << endl;
}
}