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.lang.*;
import java.util.*;
import java.text.*;


public class Main {
	

	public static void main(String[] args) throws IOException {

		//BufferedReader cin = new BufferedReader(new FileReader("test.txt"));
		 BufferedReader cin = new BufferedReader(new InputStreamReader(System.in));
	
		
		String line;
		StringTokenizer st;
		
		line = cin.readLine();
		st = new StringTokenizer(line);
		
		int n = Integer.parseInt(st.nextToken());
		int k = Integer.parseInt(st.nextToken());
		int p = Integer.parseInt(st.nextToken());

		int evenn=p;
		int oddn=k-p;
		
		ArrayList<ArrayList<Integer>> list = new ArrayList<ArrayList<Integer>>(k);
		//ArrayList<Integer> li = new ArrayList<>
		for(int i=0;i<k;i++)list.add(new ArrayList<Integer>());
		ArrayList<Integer> even = new ArrayList<Integer>();
		ArrayList<Integer> odd = new ArrayList<Integer>();
		
		line = cin.readLine();
		st = new StringTokenizer(line);
		int t;
		for(int i=0;i<n;i++){
			t=Integer.parseInt(st.nextToken());
			if(t%2==1)odd.add(t);
			else even.add(t);
		}
		
		String ans = "YES";
		
		int d = odd.size()-oddn;

		if(d<0||d%2==1||(d/2)+even.size()<evenn){
			ans="NO";
			//first insert one odd to each k-p set
			//rest of odds should be able to make even nums
			//rest of all nums needs to cover all even sets
			System.out.println(ans);
		}
		                                                    
		else{//possible
			System.out.println(ans);
			for(int i=0;i<oddn;i++){
				list.get(i).add(odd.get(i));//first oddn sets to be odd
			}
			
			int ti=oddn;
			for(int i=0;i<even.size();i++){//add even to even sets
				if(ti==k)break;//more evens than evenn
				list.get(ti).add(even.get(i));
				ti++;
			}
			if(evenn<=even.size()){//then add rest of odds to last set
				for(int i=oddn;i<odd.size();i++){
					list.get(k-1).add(odd.get(i));
				}
				if(evenn<even.size()){
					for(int i=evenn;i<even.size();i++){
						list.get(k-1).add(even.get(i));//Mistake!!!!!!!!!!!!!!!!!!!!k-1 is the last index of set!!!!!!
					}
				}
			}
			else if(evenn>even.size()){//put odd pair to rest of sets
				int index=oddn+even.size();//start of rest sets
				int oddi = oddn;//start of rest odds //Mistake!!!!!!!!!!!!!!!!!!!!index is  d+1!!!!!!!!!!!!
				while(index<k){
					list.get(index).add(odd.get(oddi));
					list.get(index).add(odd.get(oddi+1));
					oddi+=2;
					index++;
				}
				if(oddi<odd.size()){//extra odds go to any set
					while(oddi<odd.size()){
						list.get(k-1).add(odd.get(oddi));
						oddi++;
					}
				}
			}
			
			StringBuilder sb = new StringBuilder();
			int count;
			ArrayList<Integer> tt;
			for(int i=0;i<k;i++){
				tt=list.get(i);
				count = tt.size();
				sb.append(count);
				for(int j=0;j<count;j++){
					sb.append(" "+tt.get(j));
				}
				sb.append('\n');
			}
			
			System.out.println(sb);
		}
	


		cin.close();
	}

}