D = list(map(int, input().split())) if D[3] or D[:3].count(1) < 2: print("SURVIDED") else: print("DEAD")