a, b, c, d = map(int,input().split()) if a + b + c >= 2 and d == 0: print('DEAD') else: print('SURVIVED')