# input t = input().split() s = int(t[3]) d = 0 for i in range(3): d += int(t[i]) if s == 1: print('SURVIVED') else: if d < 2: print('SERVIVED') else: print('DEAD')