Frame-workout 1#979

Frame-workout 1

1 second
64 megabytes
Very easy

Replace the elements of the array according to the assignment.

Input

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

Output numbers: the elements of array A_i after the transformation.

Examples

Example 1

Loading
Loading