Problem: Devu being a small kid, likes to play a lot, but he only likes to play with arrays. While playing he came up with an interesting question which he could not solve, can you please solve it for him?

Given an array consisting of distinct integers. Is it possible to partition the whole array into k disjoint non-empty parts such that p of the parts have even sum (each of them must have even sum) and remaining k - p have odd sum? (note that parts need not to be continuous).

If it is possible to partition the array, also give any possible way of valid partitioning.

Input

The first line will contain three space separated integers n, k, p (1 ≤ k ≤ n ≤ 105; 0 ≤ p ≤ k). The next line will contain n space-separated distinct integers representing the content of array a: a1, a2, ..., an (1 ≤ ai ≤ 109).

Output

In the first line print "YES" (without the quotes) if it is possible to partition the array in the required way. Otherwise print "NO" (without the quotes).

If the required partition exists, print k lines after the first line. The ith of them should contain the content of the ith part. Print the content of the part in the line in the following way: firstly print the number of elements of the part, then print all the elements of the part in arbitrary order. There must be exactly p parts with even sum, each of the remaining k - p parts must have odd sum.

As there can be multiple partitions, you are allowed to print any valid partition.

Examples

Input

5 5 3
2 6 10 5 9


Output

YES
1 9
1 5
1 10
1 6
1 2


Input

5 5 3
7 14 2 9 5


Output

NO


Input

5 3 1
1 2 3 7 5


Output

YES
3 5 1 3
1 7
1 2

Solution (in JAVA):

Solution:

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.InputMismatchException;

public class Main {

    public static void main(String[] args) {
        InputReader in = new InputReader(System.in);
        int n = in.nextInt();
        int k = in.nextInt();
        int p = in.nextInt();
        
	int[] a = new int[n], even = new int[n], odd = new int[n];
	int ind1 = 0, ind2 = 0, tmp = 0;

	for (int i = 0; i < n; i++) {
		a[i] = in.nextInt();
		if (a[i] % 2 == 1) {
			odd[ind2++] = a[i];
		} else {
			even[ind1++] = a[i];
		}
	}

	Arrays.sort(even, 0, ind1);
        Arrays.sort(odd, 0, ind2);
        
        if ((k - p) % 2 != ind2 % 2) {
            sopln("NO");
            System.exit(0);
        }
        if (ind2 < k - p) {
            sopln("NO");
            System.exit(0);
        }
        if (p > ind1 + (ind2 - k + p) / 2) {
            sopln("NO");
            System.exit(0);
        }
        
        sopln("YES");
        
        ArrayList<HashSet<Integer>> list1 = new ArrayList<>();
        ArrayList<HashSet<Integer>> list2 = new ArrayList<>();
        
        int evenMaxFilled = -1;
        for (int i = 0; i < p && i < ind1; i++) {
            tmp++;
            evenMaxFilled = i;
            HashSet<Integer> set = new HashSet<>();
            set.add(even[i]);
            list1.add(set);
        }
        
        int oddFromStart = -1, oddFromEnd = ind2;
        for (int i = 0; tmp < p && i < ind2; i += 2) {
            tmp++;
            oddFromStart = i + 1;
            HashSet<Integer> set = new HashSet<>();
            set.add(odd[i]);
            set.add(odd[i + 1]);
            list1.add(set);
        }
        int count = 0;
        for (int i = ind2 - 1; count < k - p && i >= 0; i--) {
            HashSet<Integer> set = new HashSet<>();
            set.add(odd[i]);
            oddFromEnd = i;
            list2.add(set);
            count++;
        }
        
        if (p > 0) {
            for (int i = evenMaxFilled + 1; i < ind1; i++) {
                list1.get(i % p).add(even[i]);
            }
        } else {
            for (int i = evenMaxFilled + 1; i < ind1; i++) {
                list2.get(i % (k - p)).add(even[i]);
            }
        }
        
        if (p < k) {
            for (int i = oddFromStart + 1; i < oddFromEnd; i += 2) {
                list2.get(i % (k - p)).add(odd[i]);
                list2.get(i % (k - p)).add(odd[i + 1]);
            }
        } else {
            for (int i = oddFromStart + 1; i < oddFromEnd; i += 2) {
                list1.get(i % p).add(odd[i]);
                list1.get(i % p).add(odd[i + 1]);
            }
        }
        
        for (HashSet<Integer> set: list1) {
            sop(set.size() + " ");
            for (Integer tm: set) {
                sop(tm + " ");
            }
            sopln();
        }
        for (HashSet<Integer> set: list2) {
            sop(set.size() + " ");
            for (Integer tm: set) {
                sop(tm + " ");
            }
            sopln();
        }
    }
    
    
    static void sopln() {
        System.out.println();
    }
    
    static void sopln(Object o) {
        System.out.println(o);
    }
    
    static void sopln(String o) {
        System.out.println(o);
    }
    
    static void sop(Object o) {
        System.out.print(o);
    }
    
    static void sop(String o) {
        System.out.print(o);
    }

    private static class InputReader {

        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;
        private SpaceCharFilter filter;

        public InputReader(InputStream stream) {
            this.stream = stream;
        }

        public int read() {
            if (numChars == -1) {
                throw new InputMismatchException();
            }
            if (curChar >= numChars) {
                curChar = 0;
                try {
                    numChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (numChars <= 0) {
                    return -1;
                }
            }
            return buf[curChar++];
        }

        public int nextInt() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            int res = 0;
            do {
                if (c < '0' || c > '9') {
                    throw new InputMismatchException();
                }
                res *= 10;
                res += c - '0';
                c = read();
            } while (!isSpaceChar(c));
            return res * sgn;
        }

        public String nextString() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            } while (!isSpaceChar(c));
            return res.toString();
        }

        public double nextDouble() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            double res = 0;
            while (!isSpaceChar(c) && c != '.') {
                if (c == 'e' || c == 'E') {
                    return res * Math.pow(10, nextInt());
                }
                if (c < '0' || c > '9') {
                    throw new InputMismatchException();
                }
                res *= 10;
                res += c - '0';
                c = read();
            }
            if (c == '.') {
                c = read();
                double m = 1;
                while (!isSpaceChar(c)) {
                    if (c == 'e' || c == 'E') {
                        return res * Math.pow(10, nextInt());
                    }
                    if (c < '0' || c > '9') {
                        throw new InputMismatchException();
                    }
                    m /= 10;
                    res += (c - '0') * m;
                    c = read();
                }
            }
            return res * sgn;
        }

        public long nextLong() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            long res = 0;
            do {
                if (c < '0' || c > '9') {
                    throw new InputMismatchException();
                }
                res *= 10;
                res += c - '0';
                c = read();
            } while (!isSpaceChar(c));
            return res * sgn;
        }

        public boolean isSpaceChar(int c) {
            if (filter != null) {
                return filter.isSpaceChar(c);
            }
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

        public String next() {
            return nextString();
        }

        public interface SpaceCharFilter {

            public boolean isSpaceChar(int ch);
        }
    }
}