Given an integer and a non-negative integer . Required to determine whether it is divided by the number of , where can be , , , , , , , or .
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.
The output file you want to display YES
, if is divisible by , or NO
, if not divided.