#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; #define sz size() #define pb push_back #define mp make_pair #define fi first #define se second #define all(c) (c).begin(), (c).end() #define rep(i,a,b) for(ll i=(a);i<(b);++i) #define clr(a, b) memset((a), (b) ,sizeof(a)) #define ctos(c) string(1,c) #define print(x) cout<<#x<<" = "<> d[i]; } if (d[3] == 1) { cout << "SURVIVED" << endl; } else { if (d[0] + d[1] + d[2] > 1) { cout << "SURVIVED" << endl; } else { cout << "DEAD" << endl; } } return 0; }