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.*;
public class CF251C
{
	private static int[] nextIntArray(InputReader in,int n)	
	{
		int[] a=new int[n];
		for(int i=0;i<n;i++)
			a[i]=in.nextInt();
		return a;
	}
	private static void show(int[] a)
	{
		for(int i=0;i<a.length;i++)
			System.out.print(a[i]+" ");
		System.out.println();
	}
	public static void main(String args[])
	{
		InputReader in = new InputReader(System.in);
		OutputStream outputStream = System.out;
		PrintWriter out = new PrintWriter(outputStream);
		/*------------------------------My Code starts here------------------------------*/
		int n=in.nextInt(),k=in.nextInt(),p=in.nextInt(),i=0,o=0,e=0,j=0;
		int[] a=nextIntArray(in, n);
		List<Integer> odd=new ArrayList<>();
		List<Integer> even=new ArrayList<>();
		for(;i<n;i++)
		{
			if((a[i]&1)==0)
				even.add(a[i]);
			else
				odd.add(a[i]);
		}
		e=even.size();
		o=odd.size();
		boolean b1=((k-p)&1)==0,b2=(o&1)==0;
		if(!(b1^b2) && o>=k-p && p<=(e+(o-k+p)/2))
		{
			out.println("YES");
			for(i=0;i<(k-p-1);i++)
				out.println("1 "+odd.get(i));
			if(p==0)
			{
				out.print((o+e-i)+" ");
				for(;i<o;i++)
					out.print(odd.get(i)+" ");
				for(i=0;i<e;i++)
					out.print(even.get(i)+" ");
				out.println();
				out.close();
				return ;
			}
			else if(i<k-p)
			{
				out.println("1 "+odd.get(i));
				i++;
			}
			if(p<=e && p>0)
			{
				for(j=0;j<p-1;j++)
					out.println("1 "+even.get(j));
				out.print((e-j+o-i)+" ");
				for(;j<e;j++)
					out.print(even.get(j)+" ");
				for(;i<o;i++)
					out.print(odd.get(i)+" ");
			}
			else
			{
				for(j=0;j<e;j++)
					out.println("1 "+even.get(j));
				for(j=0;j<p-e-1;j++)
				{
					int c=0;
					out.print("2 ");
					for(;c<2;i++,c++)
						out.print(odd.get(i)+" ");
					out.println();
				}
				if(o>i)
				{
					out.print((o-i)+" ");
					for(;i<o;i++)
						out.print(odd.get(i)+" ");
					out.println();
				}
			}
		}
		else
			out.println("NO");
		out.close();
		/*------------------------------The End------------------------------------------*/
	}
	static class InputReader {
		public BufferedReader reader;
		public StringTokenizer tokenizer;

		public InputReader(InputStream inputstream) {
			reader = new BufferedReader(new InputStreamReader(inputstream));
			tokenizer = null;
		}

		public String nextLine(){
			String fullLine=null;
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					fullLine=reader.readLine();
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
				return fullLine;
			}
			return fullLine;
		}
		public String next() {
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}
}