Divided it?
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Given an integer and a non-negative integer . Required to determine whether it is divided by the number of , where can be , , , , , , , or .
Input
The first line of input contains the number of digits in . The next line contain digits number in the order in which they go to his records. The third row is the number of . It is guaranteed that no more than and the record does not contain leading zeros.
Output
The output file you want to display YES
, if is divisible by , or NO
, if not divided.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 20%