year=int(input("年?"))
if year%12==4:
    print("rat")
elif year%12==5:
    print("ox")
elif year%12==6:
    print("tiger")
elif year%12==7:
    print("rabbit")
elif year%12==8:
    print("dragon")
elif year%12==9:
    print("snake")
elif year%12==10:
    print("horse")
elif year%12==11:
    print("sheep")
elif year%12==0:
    print("monkey")
elif year%12==1:
    print("rooster")
elif year%12==2:
    print("dog")
elif year%12==3:
    print("pig")