Problem: You are given an array of integers.
You want to make all elements of equal to zero by doing the following operation exactly three times:
- Select a segment, for each number in this segment we can add a multiple of to it, where is the length of this segment (added integers can be different).
It can be proven that it is always possible to make all elements of equal to zero.
Input Format: The first line contains one integer (): the number of elements of the array.
The second line contains elements of an array separated by spaces: ().
Output Format: The output should contain six lines representing three operations.
For each operation, print two lines:
- The first line contains two integers , (): the bounds of the selected segment.
- The second line contains integers (): the numbers to add to , respectively; should be divisible by .