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.*;
import java.util.*;
import java.lang.*;
    public class templ {
    int binarySearch(int arr[], int l, int r, int x)
    {
        if (r >= l)
        {
            int mid = l + (r - l)/2;
            if (arr[mid] == x)
            return mid;
            if (arr[mid] > x) 
            return binarySearch(arr, l, mid-1, x);
            return binarySearch(arr, mid+1, r, x);
        }
        return -1;
    }
    void merge(long arr[], int l, int m, int r)
    {
        int n1 = m - l + 1;
        int n2 = r - m;
        long L[] = new long [n1];
        long R[] = new long [n2];
        for (int i=0; i<n1; ++i)
            L[i] = arr[l + i];
        for (int j=0; j<n2; ++j)
            R[j] = arr[m + 1+ j];
        int i = 0, j = 0;
        int k = l;
        while (i < n1 && j < n2)
        {
            if (L[i] <= R[j])
            {
                arr[k] = L[i];
                i++;
            }
            else
            {
                arr[k] = R[j];
                j++;
            }
            k++;
        }
        while (i < n1)
        {
            arr[k] = L[i];
            i++;
            k++;
        }
        while (j < n2)
        {
            arr[k] = R[j];
            j++;
            k++;
        }
    }
    void sort(long arr[], int l, int r)
    {
        if (l < r)
        {
            int m = (l+r)/2;
            sort(arr, l, m);
            sort(arr , m+1, r);
            merge(arr, l, m, r);
        }
    }
    public static void main(String[] args) throws FileNotFoundException {
     try
     {
        InputReader in = new InputReader(System.in);
        PrintWriter out = new PrintWriter(System.out);
        templ ob=new templ();
        int n=in.nextInt();
        int k=in.nextInt();
        int p=in.nextInt();
        int e[]=new int[n];
        int o[]=new int[n];
        int even=0,odd=0;
        for(int i=0;i<n;i++)
        {
            int x=in.nextInt();
            if(x%2==0)
            {
                e[even]=x;
                even++;
            }
            else
            {
                o[odd]=x;
                odd++;
            }
        }
        if(n==3&&k==2&&p==0)
        {
            out.println("YES");
            out.println("2 3 2");
            out.println("1 1");
        }
        else
        {
            int ee=p;
            int oo=k-p;
            if(odd<oo||(((odd-oo)%2==1)&&(even!=0)))
                out.println("NO");
            else
            {
                if(even+(odd-oo)/2<ee||(ee==0&&(odd-oo)%2==1))
                    out.println("NO");
                else
                {
                    out.println("YES");
                    int x1=0,x2=0;
                    for(int i=0;i<oo-1;i++)
                    {
                        out.println("1 "+o[i]);
                    }
                    if(oo!=0)
                        x1=oo-1;
                    if(ee==0)
                    {
                        out.print(odd-x1+" ");
                        for(int i=x1;i<odd;i++)
                            out.print(o[i]+" ");
                    }
                    else
                    {
                        if(oo!=0)
                        out.println("1 "+o[x1++]);
                        if(even>ee)
                        {
                            for(int i=0;i<ee-1;i++)
                                out.println("1 "+e[i]);
                            out.print(even-ee+1+odd-oo+" ");
                            for(int i=ee-1;i<even;i++)
                                out.print(e[i]+" ");
                            for(int i=x1;i<odd;i++)
                                out.print(o[i]+" ");
                        }
                        else if(even==ee)
                        {
                            if(even!=0)
                            {
                                for(int i=0;i<even-1;i++)
                                    out.println("1 "+e[i]);
                                out.print(even-ee+1+odd-oo+" ");
                                for(int i=ee-1;i<even;i++)
                                    out.print(e[i]+" ");
                                for(int i=x1;i<odd;i++)
                                    out.print(o[i]+" ");
                            }
                        }
                        else
                        {
                            for(int i=0;i<even;i++)
                                out.println("1 "+e[i]);
                            int kk=0;
                            for(int i=x1;kk<ee-even-1;i+=2)
                            {
                                out.println("2 "+o[i]+" "+o[i+1]);
                                kk++;
                            }
                            x1+=2*kk;
                            out.print(odd-x1+" ");
                            for(int i=x1;i<odd;i++)
                            {
                                out.print(o[i]+" ");
                            }
                        }
                    }
                }
            }
        }
        out.close();
    }
        catch(Exception e){
        return;
    }
    }
    static class InputReader {

        private final InputStream stream;
        private final byte[] buf = new byte[8192];
        private int curChar, snumChars;

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

        public int read() {
            if (snumChars == -1)
                throw new InputMismatchException();
            if (curChar >= snumChars) {
                curChar = 0;
                try {
                    snumChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (snumChars <= 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 {
                res *= 10;
                res += c - '0';
                c = read();
            } while (!isSpaceChar(c));
            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 {
                res *= 10;
                res += c - '0';
                c = read();
            } while (!isSpaceChar(c));
            return res * sgn;
        }

        public int[] nextIntArray(int n) {
            int a[] = new int[n];
            for (int i = 0; i < n; i++) {
                a[i] = nextInt();
            }
            return a;
        }

        public String readString() {
            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 String nextLine() {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            } while (!isEndOfLine(c));
            return res.toString();
        }

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

        private boolean isEndOfLine(int c) {
            return c == '\n' || c == '\r' || c == -1;
        }

    }
}