Problem: You are given an array a of n integers.

You want to make all elements of a 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 len to it, where len 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 a equal to zero.

Input

The first line contains one integer n (1 ≤ n ≤ 100 000): the number of elements of the array.

The second line contains n elements of an array a separated by spaces: a_1, a_2, ..., a_n (-10^9 ≤ a_i ≤ 10^9).

Output

The output should contain six lines representing three operations.

For each operation, print two lines:

  * The first line contains two integers l, r (1 ≤ l ≤ r ≤ n): the bounds of the selected segment.

  * The second line contains r-l+1 integers b_l, b_{l+1}, ..., b_r (-10^{18} ≤ b_i ≤ 10^{18}): the numbers to add to a_l, a_{l+1}, …, a_r, respectively; b_i should be divisible by r - l + 1.

Example

Input


4
1 3 2 4


Output


1 1 
-1
3 4
4 2
2 4
-3 -6 -6

Solution (in JAVA):

Solution:

import java.util.*;
import java.io.*;

public class MultiplesofLength {

	// https://codeforces.com/contest/1397/problem/C
	
	public static void main(String[] args) throws IOException, FileNotFoundException {
		//BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		//BufferedReader in = new BufferedReader(new FileReader("MultiplesofLength"));

		Reader in = new Reader();
		
		long n = in.nextLong();
		long[] arr = new long[(int)n];
//		StringTokenizer st = new StringTokenizer(in.readLine());
//		for (int i=0; i<n; i++) arr[i] = Long.parseLong(st.nextToken());
		
		for (int i=0; i<n; i++) arr[i] = in.nextLong();
		
		if (n == 1) {
			System.out.println("1 1");
			System.out.println(-arr[0]);
			System.out.println("1 1");
			System.out.println(0);
			System.out.println("1 1");
			System.out.println(0);
			return;
		}
		
		StringBuilder c = new StringBuilder();
		for (int i=0; i<n-1; i++) {
			// arr[i] + a*(n-1) = n*k
			// a = arr[i]
			// k = arr[i]
			long a = arr[i];
			c.append(a*(n-1));
			c.append(" ");
		}
		StringBuilder d = new StringBuilder();
		d.append(1);
		d.append(" ");
		d.append(n-1);
		System.out.println(d);
		System.out.println(c);
		
		d = new StringBuilder();
		d.append(n);
		d.append(" ");
		d.append(n);
		System.out.println(d);
		
		System.out.println(-arr[(int)n-1]);
		arr[(int)n-1] = 0;
		
		d = new StringBuilder();
		d.append(1);
		d.append(" ");
		d.append(n);
		System.out.println(d);
		c = new StringBuilder();
		
		for (int i=0; i<n; i++) {
			c.append(-arr[i]*n);
			c.append(" ");
		}
		System.out.println(c);
	}
	
	static class Reader { 
        final private int BUFFER_SIZE = 1 << 16; 
        private DataInputStream din; 
        private byte[] buffer; 
        private int bufferPointer, bytesRead; 
  
        public Reader() { 
            din = new DataInputStream(System.in); 
            buffer = new byte[BUFFER_SIZE]; 
            bufferPointer = bytesRead = 0; 
        } 
  
        public Reader(String file_name) throws IOException { 
            din = new DataInputStream(new FileInputStream(file_name)); 
            buffer = new byte[BUFFER_SIZE]; 
            bufferPointer = bytesRead = 0; 
        } 
  
        public String readLine() throws IOException { 
            byte[] buf = new byte[64]; // line length 
            int cnt = 0, c; 
            while ((c = read()) != -1) { 
                if (c == '\n') break; 
                buf[cnt++] = (byte) c; 
            } 
            return new String(buf, 0, cnt); 
        } 
  
        public int nextInt() throws IOException { 
            int ret = 0; 
            byte c = read(); 
            while (c <= ' ') c = read(); 
            boolean neg = (c == '-'); 
            if (neg) c = read(); 
            do { 
                ret = ret * 10 + c - '0'; 
            }  while ((c = read()) >= '0' && c <= '9'); 
  
            if (neg) return -ret; 
            return ret; 
        } 
  
        public long nextLong() throws IOException { 
            long ret = 0; 
            byte c = read(); 
            while (c <= ' ') c = read(); 
            boolean neg = (c == '-'); 
            if (neg) c = read(); 
            do { 
                ret = ret * 10 + c - '0'; 
            } while ((c = read()) >= '0' && c <= '9'); 
            if (neg) return -ret; 
            return ret; 
        } 
  
        public double nextDouble() throws IOException { 
            double ret = 0, div = 1; 
            byte c = read(); 
            while (c <= ' ') c = read(); 
            boolean neg = (c == '-'); 
            if (neg) c = read(); 
  
            do { 
                ret = ret * 10 + c - '0'; 
            } while ((c = read()) >= '0' && c <= '9'); 
  
            if (c == '.') { 
                while ((c = read()) >= '0' && c <= '9') { 
                    ret += (c - '0') / (div *= 10); 
                } 
            } 
  
            if (neg) return -ret; 
            return ret; 
        } 
  
        private void fillBuffer() throws IOException { 
            bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); 
            if (bytesRead == -1) buffer[0] = -1; 
        } 
  
        private byte read() throws IOException { 
            if (bufferPointer == bytesRead) fillBuffer(); 
            return buffer[bufferPointer++]; 
        } 
  
        public void close() throws IOException { 
            if (din == null) return; 
            din.close(); 
        } 
    }
}