# -*- coding: utf-8 -*- D1, D2, D3, S = map(int, input().split()) if S == 1 or [D1, D2, D3].count(1) < 2: print("SURVIVED") else: print("DEAD")