/* Sample solution for NCPC 2006: Card Trick * Author: Truls A. Bjoerklund * * The possible number of cases is small, so all answers may be pregenerated. */ import java.io.*; public class cardtrick_tab { public static void main(String args[]) throws Exception{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(in.readLine()); for(int i=0;i