import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.*;

public class Tests_tetris_new {
    Random rnd = new Random(239);
    int MAX = 50;

    int tests = 1;

    public void writeTest(int a, int b, int c) {
        try {
            PrintWriter out = tests == -1 ? new PrintWriter(System.out) : new PrintWriter(String.format("%02d", tests++));

            out.println(a + " " + b + " " + c);

            out.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public void gen(String[] args, int test) {
        tests = test;
        switch (args[0]) {
            case "write":
                writeTest(Integer.parseInt(args[1]), Integer.parseInt(args[2]), Integer.parseInt(args[3]));
                break;
        }
    }

    public void gen() {
        try {
            Scanner in = new Scanner(new File("tests_tetris_new.txt"));
            int test = 1;
            while (in.hasNext()) {
                String line = in.nextLine();
                if (line.length() == 0)
                    break;
                String[] x = line.split(" ");
                gen(Arrays.copyOfRange(x, 1, x.length), test++);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        if (args.length > 0) {
            new Tests_tetris_new().gen(args, -1);
        } else {
            new Tests_tetris_new().gen();
        }
    }
}
