import java.io.PrintWriter; import java.util.Arrays; import java.util.Random; import java.util.Scanner; public class Q701 { static Scanner in; static PrintWriter out; static String INPUT = ""; static void solve() { Random gen = new Random(); int[] none = null; int nno = 0; outer: while(true){ int[] a = new int[4]; for(int i = 0;i < 4;i++)a[i] = gen.nextInt(10); for(int i = 0;i < 4;i++){ for(int j= i+1;j < 4;j++){ if(a[i] == a[j])continue outer; } } out.println(a[0] + " " + a[1] + " " + a[2] + " " + a[3]); out.flush(); int x = ni(), y = ni(); if(x + y == 0){ none = a; for(int i = 0;i < 4;i++){ nno |= 1<