Time limit: 0.05s
Memory limit: 1MB
Input:
Output:
Martin.
Martin chooses two natural numbers and . He also chooses a number and calculates the numbers and , which represent the remainders of and , respectively, when divided by .
Task
Given the numbers , , , and the sum , determine if we can choose two numbers and that meet Martin's conditions.
Input data
The first line contains 4 numbers , , , and as described in the statement.
Output data
If two numbers can be chosen to meet the conditions, print DA
(yes in Romanian), otherwise print NU
(no in Romanian).
Constraints and clarifications
- ;
- ;
- ;
Example 1
stdin
5 2 4 11
stdout
DA
Explanation
The solution and meets the conditions.
Example 2
stdin
7 2 5 9
stdout
NU