import java.util.* ; public class Wormhole { static double d2(int dx, int dy, int dz) { return Math.sqrt(dx*(double)dx + dy*(double)dy + dz*(double)dz) ; } public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in) ; int T = sc.nextInt() ; for (int kase=1; kase<=T; kase++) { System.out.println("Case " + kase + ":") ; int P = sc.nextInt() ; HashMap id = new HashMap() ; int x[] = new int[P] ; int y[] = new int[P] ; int z[] = new int[P] ; for (int i=0; i