import random
head=int(input())
for i in range (1,5):
count=random.randrange(10)
head -= count
if (head<=count):
print("Dead")
else:
print("Живий. Залищилось ",head,"голів")
aW1wb3J0IHJhbmRvbQpoZWFkPWludChpbnB1dCgpKQpmb3IgaSBpbiByYW5nZSAoMSw1KToKIGNvdW50PXJhbmRvbS5yYW5kcmFuZ2UoMTApCiBoZWFkIC09IGNvdW50CiBpZiAoaGVhZDw9Y291bnQpOgogICBwcmludCgiRGVhZCIpCiBlbHNlOgogICBwcmludCgi0JbQuNCy0LjQuS4g0JfQsNC70LjRidC40LvQvtGB0YwgIixoZWFkLCLQs9C+0LvRltCyIikK