Replace the elements of the array according to the assignment.
The input file contains first the number (1 \leq N \leq 100), followed by numbers from to — the array elements A_i. Then, two numbers and (from to , not necessarily different) are given.
You must make all elements equal to A_q become equal to A_w. First read all the data, then make the required changes, and only after that output the result (do not perform transformations during output). Try to avoid using additional arrays.
Output numbers: the elements of array A_i after the transformation.
Example 1