l= list(map(int, input().split())) if l[3] == 0 and l.sount(1) >= 2: print('DEAD') else: print(print('SURVIVED'))