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.BufferedInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.InputMismatchException;
import java.util.LinkedList;
import java.util.Map.Entry;
import java.util.Queue;
import java.util.Set;
import java.util.SortedSet;
import java.util.Stack;
import java.util.TreeMap;
import java.util.TreeSet;

public class Main
{
	public void foo()
	{
		MyScanner scan = new MyScanner();
		int n = scan.nextInt();
		int k = scan.nextInt();
		int pEven = scan.nextInt();
		int pOdd = k - pEven;
		ArrayList<Integer> even = new ArrayList<Integer>();
		ArrayList<Integer> odd = new ArrayList<Integer>();
		for(int i = 0;i < n;++i)
		{
			int a = scan.nextInt();
			if(0 == a % 2)
			{
				even.add(a);
			}
			else
			{
				odd.add(a);
			}
		}
		PrintWriter out = new PrintWriter(System.out);
		if(odd.size() >= pOdd && 0 == (odd.size() - pOdd) % 2 && (odd.size() - pOdd) / 2 + even.size() >= pEven)
		{
			ArrayList<Integer>[] arrOdd = new ArrayList[pOdd];
			ArrayList<Integer>[] arrEven = new ArrayList[pEven];
			for(int i = 0;i < pOdd;++i)
			{
				arrOdd[i] = new ArrayList<Integer>();
				arrOdd[i].add(odd.get(i));
			}
			for(int i = 0;i < pEven;++i)
			{
				arrEven[i] = new ArrayList<Integer>();
			}
			if((odd.size() - pOdd) / 2 >= pEven)
			{
				for(int i = 0;i < pEven;++i)
				{
					arrEven[i].add(odd.get(pOdd + 2 * i));
					arrEven[i].add(odd.get(pOdd + 2 * i + 1));
				}
				if(pOdd > 0)
				{
					for(int i = pOdd + 2 * pEven;i < odd.size();++i)
					{
						arrOdd[0].add(odd.get(i));
					}
					for(int i : even)
					{
						arrOdd[0].add(i);
					}
				}
				else
				{
					for(int i = pOdd + 2 * pEven;i < odd.size();++i)
					{
						arrEven[0].add(odd.get(i));
					}
					for(int i : even)
					{
						arrEven[0].add(i);
					}
				}
			}
			else
			{
				for(int i = 0;i < (odd.size() - pOdd) / 2;++i)
				{
					arrEven[i].add(odd.get(pOdd + 2 * i));
					arrEven[i].add(odd.get(pOdd + 2 * i + 1));
				}
				for(int i = (odd.size() - pOdd) / 2;i < pEven;++i)
				{
					arrEven[i].add(even.get(i - (odd.size() - pOdd) / 2));
				}
				if(pOdd > 0)
				{
					for(int i = pEven - (odd.size() - pOdd) / 2;i < even.size();++i)
					{
						arrOdd[0].add(even.get(i));
					}
				}
				else
				{
					for(int i = pEven - (odd.size() - pOdd) / 2;i < even.size();++i)
					{
						arrEven[0].add(even.get(i));
					}
				}
			}
			out.println("YES");
			for(int i = 0;i < pOdd;++i)
			{
				out.print(arrOdd[i].size());
				for(int j : arrOdd[i])
				{
					out.print(" " + j);
				}
				out.println();
			}
			for(int i = 0;i < pEven;++i)
			{
				out.print(arrEven[i].size());
				for(int j : arrEven[i])
				{
					out.print(" " + j);
				}
				out.println();
			}
		}
		else
		{
			out.println("NO");
		}
		out.close();
	}

	public static void main(String[] args)
	{
		new Main().foo();
	}
	
	class MyScanner
	{
	    private byte[] buf = new byte[1024];
	    private int curChar;
	    private int numChars;
	    BufferedInputStream bis = new BufferedInputStream(System.in);

	    public int read() 
	    {
	        if (-1 == numChars)
	        {
	        	throw new InputMismatchException();
	        }
	        if (curChar >= numChars)
	        {
	            curChar = 0;
	            try 
	            {
	                numChars = bis.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 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 String next()
	    {
	        int c = read();
	        while (isSpaceChar(c))
	        {
	        	c = read();
	        }
	        StringBuilder res = new StringBuilder();
	        do 
	        {
	            res.appendCodePoint(c);
	            c = read();
	        } while (!isSpaceChar(c));
	        return res.toString();
	    }

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