import java.io.*; import java.util.*; public class copter_mb_too_simple { public static void main(String[] args) throws IOException { try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) { int n = Integer.parseInt(in.readLine()); for (int i = 0; i < n; ++i) { StringTokenizer st = new StringTokenizer(in.readLine()); double pitch = Double.parseDouble(st.nextToken()) / 2; double roll = Double.parseDouble(st.nextToken()) / 2; double yaw = Double.parseDouble(st.nextToken()) / 4; System.out.println((roll + yaw) + " " + (pitch + yaw) + " " + (-roll + yaw) + " " + (-pitch + yaw)); } } } }