5035: P4440 [COCI2017-2018#3] Programiranje(普及-)

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Input

Output

Sample Input Copy

kileanimal
2
2 2 7 7
1 4 6 7

Sample Output Copy

DA
NE

HINT