#854
Bronze IV
ŠIBICE
시간 제한
1s
메모리 제한
32MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%

문제

Young Mirko threw matches all over the floor of his room.

His mom did not like that and ordered him to put all the matches in a box. Mirko soon noticed that not all of the matches on the floor fit in the box, so he decided to take the matches that don't fit and throw them in the neighbour's garbage, where his mom (hopefully) won't find them.

Help Mirko determine which of the matches fit in the box his mom gave him. A match fits in the box if its entire length can lie on the bottom of the box. Mirko examines the matches one by one.

입력

The first line of input contains an integer NN (1N501 \le N \le 50), the number of matches on the floor, and two integers WW and HH, the dimensions of the box (1W1001 \le W \le 100, 1H1001 \le H \le 100).

Each of the following NN lines contains a single integer between 11 and 10001000 (inclusive), the length of one match.

출력

For each match, in the order they were given in the input, output on a separate line "DA" if the match fits in the box or "NE" if it does not.

예제 입력 1

5 3 4
3
4
5
6
7

예제 출력 1

DA
DA
DA
NE
NE

예제 입력 2

2 12 17
21
20

예제 출력 2

NE
DA
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
Bronze IV1명 투표· 약 1개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.