Affine Cipher

A cipher process consists in change each symbol of a message to another symbol from the same alphabet used in the original message, in the way to has one by one correspondence to each other. It means that two different symbols can not be replaced by the same symbol.

An Affine cipher consists in suppose some symbols of a TT size alphabet as numbers of an interval [00..T1T-1]. Two positive numbers AA and BB are chosen. To cipher a symbol is necessary to multiply its position value on the alphabet by AA and the number BB needs to be added to the result of this multiplication. In the end, the result will be the position of the symbol that will replace the original in the sequence. If this new position does not correspond to a valid position inside the size of the alphabet, it supposes that the alphabet will be repeated many times on the right, in the way to have all estimated positions.

For example, suppose an alphabet which its size is 77 and A=4A=4 and B=2B=2. To cipher any symbol from this alphabet is necessary to extend the alphabet to the right by 33 times, as shown below:

Figure 1

In this cipher, the symbol 66 is ciphered to the symbol 55 because A6+B=26A * 6 + B=26 and the symbol in position 2626 is 55.

Need to be noted that not all Affine cipher is valid. A poorly made cipher can not produce a one-by-one correspondence between symbols, not guaranteeing that the decipher could be made in a unique way.

Your task is, given the parameters AA and BB and the alphabet size, decipher a message with NN symbols or show that it not possible to do so.

Input

The first line of the input consists in an integer number N (1  N  105)N \ (1 \ \leq \ N \ \leq \ 10^5) that corresponds to the message size. The second line consists of NN integer numbers Mi (0  Mi<T)(0 \ \leq \ M_i < T) that correspond to the message itself. The third line contains three integers: T (1  T  109)(1 \ \leq \ T \ \leq \ 10^9) that corresponds to the alphabet size; and A (1  A  109)A \ (1 \ \leq \ A \ \leq \ 10^9) and B (1  B  109)B \ (1 \ \leq \ B \ \leq \ 10^9) as specified before.

Output

The output consists in a single line containing the deciphered message, with its symbols separated by a single blank space, if will be possible to decipher each symbol of the alphabet in a single mode. Otherwise, print the message "DECIFRAGEM AMBIGUA" (ambiguous decipher).

Input Samples Output Samples
7
2 6 3 0 4 1 5
7 4 2
0 1 2 3 4 5 6
3
6 79 44
108 73 41
1 2 3
3
73 60 49
119 25 48
1 10 100