题目描述
样例输入 #1
2 4-4-2 10-0-0 10 O O O O O O O O ON NO
样例输出 #1
NE DA
样例输入 #2
3 4-4-2 3-5-2 4-3-3 11 OV OV OVN OV OV V V N O O O
样例输出 #2
DA DA NE
提示
Clarification of the first example: We see that Niko has almost only defensive players at his service, so he can only use the formation 10-0-0, the infamous "parking the bus".
Clarification of the second example: For formation 4-4-2, he can put players 1, 2, 9 and 10 as defense, players 4, 5, 6 and 7 as midfielders, and players 3 and 8 as offense. For formation 3-5-2, he can put players 4, 9 and 10 as defense, players 1, 2, 5, 6 and 7 as midfielders, and players 3 and 8 as offense. Formation 4-3-3 can't be set up because the coach has only 2 offensive players.
来源
COCI 2014-2015 CONTEST #6