Masala E
Beautiful numbers
A four-digit number is beautiful if when divided by gives a remainder of .
For example, the number is beautiful because
You are given four-digit numbers, print for each number if the number is beautiful and , otherwise
Kiruvchi ma'lumotlar:
The first line contains a natural number . Then there are t four-digit numbers.
Chiquvchi ma'lumotlar:
If the number is nice, print , otherwise .
Misollar
# | input.txt | output.txt |
---|---|---|
1 |
3 2843 8243 0100 |
YES NO YES |