One of the common tasks in image processing is averaging. Consider a set of numbers u_{i,j} representing image brightness, where i, j = 0, 1, \ldots, n-1. Averaging involves calculating the values:
The indices are taken modulo . Given a set of numbers v_{i,j}, your task is to restore the original values u_{i,j}.
The first line contains the integer 2 \leq n \leq 100. The following lines each contain integers, where -10 \leq v_{i,j} \leq 10.
Output lines, each containing numbers, representing the restored set u_{i,j}. The numbers should be output with a precision of at least 10^{-9}.
Example 1