using System; public class Program { public static void Main() { int[] A = {-7, 1, 5, 2, -4, 3, 0}; int length = A.Length; if(length < 3) { System.Console.Write("-1"); } else { for(int k=1; k