import strutils, sequtils let DS = stdin.readLine.split.map parseInt var ans = 0 for i in 0 ..< 3: ans += DS[i] ["DEAD", "SURVIVED"][ int(DS[^1] == 1 or ans < 2)].echo