1. Calculate the difference between the largest and smallest absolute values of elements in the given array A
2. For the given values $X_1, X_2, ..., X_n$ and $Y_1, Y_2, ..., Y_n$,
replace each non-positive value of an element in the array $X_1, X_2, ..., X_n$
by the value of an element in the array $Y_1, Y_2, ..., Y_n$ with the same number.
Find the number of replacements.