# yukicoder No.431 死亡フラグ D1, D2, D3, S = map(int, input().split()) print("SURVIVED" if S or D1 + D2 + D3 < 2 else "DEAD")