#include <bits/stdc++.h>
using namespace std;
#define l2 long long
int main() {
	int n;
	cin >> n;
	string s;
	cin >> s;
	int one = 0;
	int two = 0;
	int three = 0;
	for (char c: s) {
	    if (c == '1') one++;
	    else if (c == '2') two++;
	    else three++;
	}
	one %= 2;
	two %= 2;
	three %= 2;
	if (one == two && two == three) cout << "DA";
	else cout << "NE";
	
	return 0;}
| # | Verdict | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict | Execution time | Memory | Grader output | 
|---|
| Fetching results... |