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.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Queue;
import java.util.Scanner;
import java.util.Stack;
import java.util.Vector;
import java.awt.peer.SystemTrayPeer;
import java.io.*;
public class test {
	static class Reader {

        final private int BUFFER_SIZE = 1 << 16;
        private DataInputStream din;
        private byte[] buffer;
        private int bufferPointer, bytesRead;

        public Reader() {
            din = new DataInputStream(System.in);
            buffer = new byte[BUFFER_SIZE];
            bufferPointer = bytesRead = 0;
        }

        public Reader(String file_name) throws IOException {
            din = new DataInputStream(new FileInputStream(file_name));
            buffer = new byte[BUFFER_SIZE];
            bufferPointer = bytesRead = 0;
        }

        public String readLine() throws IOException {
            byte[] buf = new byte[64]; // line length
            int cnt = 0, c;
            while ((c = read()) != -1) {
                if (c == '\n') {
                    break;
                }
                buf[cnt++] = (byte) c;
            }
            return new String(buf, 0, cnt);
        }

        public int nextInt() throws IOException {
            int ret = 0;
            byte c = read();
            while (c <= ' ') {
                c = read();
            }
            boolean neg = (c == '-');
            if (neg) {
                c = read();
            }
            do {
                ret = ret * 10 + c - '0';
            } while ((c = read()) >= '0' && c <= '9');
            if (neg) {
                return -ret;
            }
            return ret;
        }

        public long nextLong() throws IOException {
            long ret = 0;
            byte c = read();
            while (c <= ' ') {
                c = read();
            }
            boolean neg = (c == '-');
            if (neg) {
                c = read();
            }
            do {
                ret = ret * 10 + c - '0';
            } while ((c = read()) >= '0' && c <= '9');
            if (neg) {
                return -ret;
            }
            return ret;
        }

        public double nextDouble() throws IOException {
            double ret = 0, div = 1;
            byte c = read();
            while (c <= ' ') {
                c = read();
            }
            boolean neg = (c == '-');
            if (neg) {
                c = read();
            }
            do {
                ret = ret * 10 + c - '0';
            } while ((c = read()) >= '0' && c <= '9');
            if (c == '.') {
                while ((c = read()) >= '0' && c <= '9') {
                    ret += (c - '0') / (div *= 10);
                }
            }
            if (neg) {
                return -ret;
            }
            return ret;
        }

        private void fillBuffer() throws IOException {
            bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
            if (bytesRead == -1) {
                buffer[0] = -1;
            }
        }

        private byte read() throws IOException {
            if (bufferPointer == bytesRead) {
                fillBuffer();
            }
            return buffer[bufferPointer++];
        }

        public void close() throws IOException {
            if (din == null) {
                return;
            }
            din.close();
        }
    }
public static void main(String args[]) throws IOException{
	Reader r=new Reader();//Scanner s=new Scanner(System.in);
	int n=r.nextInt();
	int k=r.nextInt();
	int p=r.nextInt();
	//int ar[]=new int[n];
	Stack<Integer> even=new Stack<>();
	Stack<Integer> odd=new Stack<>();
//	long sum[]=new long[n];
	//for(int i=0;i<n;i++){ar[i]=r.nextInt();}
	for(int i=0;i<n;i++){int x=r.nextInt();if(x%2==0)even.push(x);else odd.push(x);}
	ArrayList<Integer> ar[]=new ArrayList[k];
	for(int i=0;i<k;i++)ar[i]=new ArrayList<>();
	int i=0;
	boolean ans=true;
	if(p==0){
		int j=0;
		while(!odd.isEmpty()){
			ar[j].add(odd.pop());
			j++;if(j==k)break;
		}if(j!=k){System.out.println("NO");}else{
		//for(i=0;i<k;i++){}
		if(odd.size()%2==1){System.out.println("NO");}
		else{while(!odd.isEmpty())ar[0].add(odd.pop());
		while(!even.isEmpty())ar[0].add(even.pop());
		System.out.println("YES");
		for(int c=0;c<k;c++){System.out.print(ar[c].size()+" ");for(int z:ar[c])System.out.print(z+" ");System.out.println();}
		}
	}}
	else
	{
	for(i=0;i<k-p;i++)
	{if(odd.isEmpty())break;
	ar[i].add(odd.pop());}
	if(i!=k-p){System.out.println("NO");}
	else
	{boolean anss=false;
		if(odd.size()%2==1){System.out.println("NO");}
		else
		{while(!odd.isEmpty()){ar[i].add(odd.pop());ar[i].add(odd.pop());i++;if(i==k){i=k-p;anss=true;}}
		while(!even.isEmpty()){ar[i].add(even.pop());i++;if(i==k){anss=true;i=k-p;}}
		
		if(anss==false){System.out.println("NO");}
		else
		{System.out.println("YES");
			for(int j=0;j<k;j++){
			System.out.print(ar[j].size()+" ");
			for(int x:ar[j])System.out.print(x+" ");
		System.out.println();}}
		}
		
		
		
	}
	}
	
}
}