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:
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

/**
 *
 * @author sousnake
 */
public class C {
    static ArrayList<ArrayList<Integer>> sol;
    public static void main(String [] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s[] = br.readLine().split(" ");
        int n = Integer.parseInt(s[0]);
        int k = Integer.parseInt(s[1]);
        int p = Integer.parseInt(s[2]);
        s = br.readLine().split(" ");
        int even[] = new int[n];
        int evn=0;
        int odd[] = new int[n];
        int od=0;
        sol = new ArrayList<ArrayList<Integer>>();
        for(int i=0;i<n;i++){
            int x = Integer.parseInt(s[i]);
            if(x%2==0){
                even[evn]=x;
                evn++;
            }
            else{
                odd[od]=x;
                od++;
            }
        }
        int pos=p;int neg=k-p;
        boolean ans;
        int cs=0;
        if(pos<=evn){
            cs=1;
            if(neg<=od){
                if((od-neg)%2==0)
                    ans=true;
                else ans=false;
            }
            else ans=false;
        }
        else{
            cs=2;
            int need = pos-evn;
            int leftodd = od-(2*need);
            if(neg<=leftodd){
                if((leftodd-neg)%2==0)
                    ans=true;
                else
                    ans=false;
            }
            else ans=false;
        }
        if(ans==false)
            System.out.println("NO");
        else{
            int pss=0;
            System.out.println("YES");
            if(cs==1){
                while(pos>1){
                    ArrayList<Integer> tmp =new  ArrayList<Integer>();
                    tmp.add(even[pss]);
                    sol.add(tmp);
                    pss++;
                    pos--;
                }
                ArrayList<Integer> tmpx =new ArrayList<Integer>();
                if(neg==0){
                    ArrayList<Integer> tmp = new ArrayList<Integer>();
                    while(pss<evn){
                        tmp.add(even[pss]);
                        pss++;
                    }
                    pss=0;
                    while(pss<od){
                        tmp.add(odd[pss]);
                        pss++;
                    }
                    sol.add(tmp);
                    print();
                    return;
                }
                else{
                    //System.out.println("here "+pss+" ");
                    while(pss<evn){
                        tmpx.add(even[pss]);
                        pss++;
                    }
                }
                if(pos!=0)
                    sol.add(tmpx);
                pss=0;
                while(neg>1){
                    ArrayList<Integer> tmp  = new ArrayList<Integer>();
                    tmp.add(odd[pss]);
                    sol.add(tmp);
                    pss++;
                    neg--;
                }
                ArrayList<Integer> ts = new ArrayList<Integer>();
                while(pss<od){
                    ts.add(odd[pss]);
                    pss++;
                }
                pss=0;
                if(pos==0){
                    while(pss<evn){
                        ts.add(even[pss]);
                        pss++;
                    }
                }
                if(neg!=0)
                    sol.add(ts);
            }
            else{
                for(int i=0;i<evn;i++){
                    ArrayList<Integer> tmp =new ArrayList<Integer>();
                    tmp.add(even[i]);
                    sol.add(tmp);
                }
                pss=0;
                for(int i=0;i<pos-evn-1;i++){
                    ArrayList<Integer> tmp =new ArrayList<Integer>();
                    tmp.add(odd[pss]);
                    pss++;
                    tmp.add(odd[pss]);
                    pss++;
                    sol.add(tmp);
                }
                if(neg==0){
                    ArrayList<Integer> tmp =new ArrayList<Integer>();
                    while(pss<od){
                        tmp.add(odd[pss]);
                        pss++;
                    }
                    sol.add(tmp);
                    print();
                    return;
                }
                else{
                    ArrayList<Integer> tmp =new ArrayList<Integer>();
                    tmp.add(odd[pss]);
                    pss++;
                    tmp.add(odd[pss]);
                    pss++;
                    sol.add(tmp);
                }
                while(neg>1){
                    ArrayList<Integer> tmp =new ArrayList<Integer>();
                    tmp.add(odd[pss]);
                    sol.add(tmp);
                    pss++;
                    neg--;
                }
                ArrayList<Integer> tmp =new ArrayList<Integer>();
                while(pss<od){
                    tmp.add(odd[pss]);
                    pss++;
                }
                sol.add(tmp);
            }
            print();
        }
    }
    public static void print(){
        for(int i=0;i<sol.size();i++){
            ArrayList<Integer> tmp = sol.get(i);
            System.out.print(tmp.size());
            for(int j=0;j<tmp.size();j++){
                System.out.print(" "+tmp.get(j));
            }
            System.out.println();
        }
        //System.out.println(sol);
    }
}