# coding: utf-8 def main(): flags = list(map(int, input().split(' '))) print(judge(flags)) def judge(flags): if flags[3]: return 'SURVIVED' else: return 'SURVIVED' if sum(flags[:2]) < 2 else 'DEAD' if __name__ == '__main__': main()