//No.112 ややこしい鶴亀算 import java.util.*; import java.io.*; import static java.util.Arrays.*; import static java.lang.Math.*; public class No112 { static final Scanner sc = new Scanner(System.in); static final PrintWriter out = new PrintWriter(System.out,false); static void solve() { int n = sc.nextInt(); int[] a = new int[n]; for (int i=0; i