ls=list(input().split())
cnt=0
for i in range(3):
    if ls[i]=='1':
        cnt+=1
if ls[3]=='1':
    print("SURVIVED")
else:
    if cnt >=2:
        print("DEAD")
    else:
        print("SURVIVED")