import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Accomplished using the EduTools plugin by JetBrains https://plugins.jetbrains.com/plugin/10081-edutools
 */

public class Main {
   static BufferedWriter printer = new BufferedWriter(new OutputStreamWriter(System.out));
   static long mod = 1000000007;
   private static StreamTokenizer streamTokenizer;

   public static long gcd(long x, long y) {
      if (x % y == 0)
         return y;
      else
         return gcd(y, x % y);
   }

   private static int nextInt() throws IOException {
      streamTokenizer.nextToken();
      return (int) streamTokenizer.nval;
   }

   private static void printWithWhitespaces(int[] arr) throws IOException {
      for (int i = 0; i < arr.length; i++) {
         if (i < arr.length - 1) {
            printer.write(arr[i] + " ");
         } else {
            printer.write(arr[i] + "");
         }
      }
      printer.flush();
   }

   private static String nextStr() throws IOException {
      streamTokenizer.nextToken();
      return streamTokenizer.sval;
   }

   private static long nextLong() throws IOException {
      streamTokenizer.nextToken();
      return (long) streamTokenizer.nval;
   }

   public static void println(String s) throws IOException {
      printer.write(s + "\n");
      printer.flush();
   }

   private static double nextDouble() throws IOException {
      streamTokenizer.nextToken();
      return streamTokenizer.nval;
   }

   public static void main(String[] args) throws IOException {
      streamTokenizer = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
      final Main template = new Main();
      template.solve();
      printer.flush();
      printer.close();
   }

   private long findFactorial(int m) {
      long n = 1;
      for (int i = 1; i <= m; ++i) {
         n = (n * i) % mod;
      }
      return n;
   }

   private long findPower2(int m) {
      long n = 1;
      for (int i = 1; i <= m; ++i) {
         n = (n * 2) % mod;
      }
      return n;
   }

   private void solve() throws IOException {
      int n = nextInt();
      while(n-- > 0){
         int t = nextInt();
         List<Integer> l = new ArrayList<>();
         while(t-->0){
            l.add(nextInt());
         }
         int c = l.get(l.size()-1);
         int a = l.get(0);
         int b = l.get(1);
         if(c>=(a+b)){
            printer.write(a+" ");
            printer.write(b+" ");
            printer.write(c +"\n");
         }else{
            printer.write(-1+"\n");
         }
      }
   }


}