animal_type = input()
mammals = ["dog"]
reptiles = ["crocodile", "tortoise", "snake"]

if animal_type in mammals:
    print("mammal")
elif animal_type in reptiles:
    print("reptile")
else:
    print("unknown")
