import math, sequtils, strutils let xs = stdin.readLine.split.map parseInt if xs[3] == 0 and xs[0..2].sum >= 2: echo "DEAD" quit() echo "SURVIVED"