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.*;
import java.io.*;
import java.math.*;

public class Main {

	static class FastScanner {
		BufferedReader s;
		StringTokenizer st;

		public FastScanner(InputStream InputStream) {
			st = new StringTokenizer("");
			s = new BufferedReader(new InputStreamReader(InputStream));
		}

		public FastScanner(File f) throws FileNotFoundException {
			st = new StringTokenizer("");
			s = new BufferedReader(new FileReader(f));
		}

		public int nextInt() throws IOException {
			if (st.hasMoreTokens())
				return Integer.parseInt(st.nextToken());
			else {
				st = new StringTokenizer(s.readLine());
				return nextInt();
			}
		}

		public BigInteger big() throws IOException {
			if (st.hasMoreTokens())
				return new BigInteger(st.nextToken());
			else {
				st = new StringTokenizer(s.readLine());
				return big();
			}
		}

		public double nextDouble() throws IOException {
			if (st.hasMoreTokens())
				return Double.parseDouble(st.nextToken());
			else {
				st = new StringTokenizer(s.readLine());
				return nextDouble();
			}
		}

		public long nextLong() throws IOException {
			if (st.hasMoreTokens())
				return Long.parseLong(st.nextToken());
			else {
				st = new StringTokenizer(s.readLine());
				return nextLong();
			}
		}

		public String next() throws IOException {
			if (st.hasMoreTokens())
				return st.nextToken();
			else {
				st = new StringTokenizer(s.readLine());
				return next();
			}

		}

		public String nextLine() throws IOException {
			return s.readLine();
		}

		public void close() throws IOException {
			s.close();
		}

	}

	public static void main(String[] args) throws java.lang.Exception {
		FastScanner in = new FastScanner(System.in);
		int n = in.nextInt(), k = in.nextInt(), p = in.nextInt();
		int[] arr = new int[n];
		int noo = 0, noe = 0;
		for (int x = 0; x < n; x++) {
			arr[x] = in.nextInt();
			if ((arr[x] & 1) == 0)
				noe++;
			else
				noo++;
		}
		int ro = k - p, re = p;
		if(re == 0) {
			if(noo >= ro && ((noo - ro) & 1) == 0) {
				int val = noe + noo - ro;
				int x = 0;
				StringBuilder sb = new StringBuilder("YES\n");
				if(val > 0) {
					val++;
					sb.append(val + " ");
					while(x < n) {
						if((arr[x] & 1) == 0) {
							sb.append(arr[x] + " ");
							val--;
						}
						x++;
					}
					x = 0;
					while(x < n) {
						if((arr[x] & 1) == 1) {
							sb.append(arr[x] + " ");
							if(-- val == 0) {
								sb.append("\n");
								x++;
								break;
							}
						}
						x++;
					}
				}
				while(x < n) {
					if((arr[x] & 1) == 1) 
						sb.append("1 " + arr[x] + "\n");
					x++;
				}
				System.out.println(sb);
			}
			else {
				System.out.println("NO");
				return;
			}
		}
		else if(ro == 0) {
			if((noo & 1) == 0 && noe + noo/2 >= re) {
				int val = noe + noo/2 - re;
				int x = 0;
				StringBuilder sb = new StringBuilder("YES\n");
				if(val > 0) {
					val++;
					if(val <= noe)
						sb.append(val + " ");
					else {
						sb.append((noe + 2*(val - noe)) + " ");
					}
					while(x < n) {
						if((arr[x] & 1) == 0) {
							sb.append(arr[x] + " ");
							if(--val == 0) {
								sb.append("\n");
								x++;
								break;
							}
						}
						x++;
					}
					if(val == 0) {
						while(x < n) {
							if((arr[x] & 1) == 0) {
								sb.append("1 "+arr[x] + "\n");
							}
							x++;
						}
						x = 0;
						while(x < n) {
							if((arr[x] & 1) == 1) {
								sb.append("2 " + arr[x] + " ");
								x++;
								while((arr[x] & 1) == 0) {
									x++;
								}
								sb.append(arr[x] + "\n");
							}
							x++;
						}
					}
					else {
						x = 0;
						while(x < n) {
							if((arr[x] & 1) == 1) {
								sb.append(arr[x] + " ");
								x++;
								while((arr[x] & 1) == 0) {
									x++;
								}
								sb.append(arr[x] + " ");
								if(-- val == 0) {
									sb.append("\n");
									x++;
									break;
								}
							}
							x++;
						}
						while(x < n) {
							if((arr[x] & 1) == 1) {
								sb.append("2 " + arr[x] + " ");
								x++;
								while((arr[x] & 1) == 0) {
									x++;
								}
								sb.append(arr[x] + "\n");
							}
							x++;
						}
					}
					System.out.println(sb);
					return;
				}
				while(x < n) {
					if((arr[x] & 1) == 0) 
						sb.append("1 " + arr[x] + "\n");
					x++;
				}
				x = 0;
				while(x < n) {
					if((arr[x] & 1) == 1) {
						sb.append("2 " + arr[x] + " ");
						x++;
						while((arr[x] & 1) == 0)
							x++;
						sb.append(arr[x] + "\n");
					}
					x++;
				}
				System.out.println(sb);
			}
			else {
				System.out.println("NO");
				return;
			}
		}
		else if (re <= noe && ro <= noo) {
			if (((noo - ro) & 1) == 0) {
				StringBuilder sb = new StringBuilder("YES\n");
				int val = noe - re;
				int x = 0;
				if(val > 0) {
					val++;
					sb.append(val + " ");
					
					for (; x < n; x++) {
						if ((arr[x] & 1) == 0) {
							sb.append(arr[x] +" ");
							if(--val == 0) {
								x++;
								sb.append("\n");
								break;
							}
						}
					}
				}
				for (; x < n; x++) {
					if ((arr[x] & 1) == 0) {
						sb.append("1 " + arr[x] + "\n");
					}
				}
				val = noo - ro;
				if(val > 0) {
					val++;
					sb.append(val + " ");
					x = 0;
					for (; x < n; x++) {
						if ((arr[x] & 1) == 1) {
							sb.append(arr[x] + " ");
							if(--val == 0) {
								x++;
								sb.append("\n");
								break;
							}
						}
					}
				}
				else {
					x = 0;
				}
				for (; x < n; x++) {
					if ((arr[x] & 1) == 1) {
						sb.append("1 " + arr[x] + "\n");
					}
				}
				System.out.println(sb);
			} else {
				System.out.println("NO");
				return;
			}
		} else if (re > noe && noo - 2 * (re - noe) >= ro) {
			if (((noo - ro - 2 * (re - noe)) & 1) == 0) {
				StringBuilder sb = new StringBuilder("YES\n");
				int val = -noe + re;
				int x = 0;
				for (; x < n; x++) {
					if ((arr[x] & 1) == 0) {
						sb.append("1 " + arr[x] + "\n");
					}
				}
				x = 0;
				for (; x < n; x++) {
					if ((arr[x] & 1) == 1) {
						sb.append("2 " + arr[x]);
						x++;
						while((arr[x] & 1) == 0)x++;
						sb.append(" " + arr[x] + "\n");
						if(--val == 0) {
							x++;
							break;
						}
					}
				}
				
				val = noo - ro - 2 * (re - noe);
				if(val > 0) {
					val++;
					sb.append(val + " ");
					
					for (; x < n; x++) {
						if ((arr[x] & 1) == 1) {
							sb.append(arr[x] +" ");
							if(--val == 0) {
								x++;
								sb.append("\n");
								break;
							}
						}
					}
				}
				for(; x < n; x++) {
					if ((arr[x] & 1) == 1) 
						sb.append("1 " + arr[x] +"\n");
				}
				System.out.println(sb);
			} else {
				System.out.println("NO");
				return;
			}
		} else {
			System.out.println("NO");
			return;
		}
	}

}