public static void main(String[] args) {

        Scanner s = new Scanner(System.in);

        int[][] numbers = new int[2][5];
        int[] counters = new int[2];

        for(int i = 0; i < 15; i++){

            int x = s.nextInt();

            int ind = Math.abs(x) % 2 == 1 ? 0 : 1;

            numbers[ind][counters[ind]] = x;
            counters[ind]++;

            if(counters[ind] == 5){

                counters[ind] = 0;

                for(int j = 0; j < 5; j++){
                    System.out.printf("%s[%d] = %d\n", ind == 1 ? "par" : "impar", j, numbers[ind][j]);
                }

            }

        }

        for(int i = 0; i <= 1; i++){
            for(int j = 0; j < counters[i]; j++){
                System.out.printf("%s[%d] = %d\n", i == 1 ? "par" : "impar", j, numbers[i][j]);
            }
        }

    }