#include <bits/stdc++.h>
using namespace std;
using int64 = long long int;
vector<int64> A[2];
int main() {
  int64 n, k, p;
  cin >> n >> k >> p;
  vector<vector<int64>> ans;
  for (int i = 0; i < n; ++i) {
    int64 val;
    cin >> val;
    A[val % 2].push_back(val);
  }
  if (A[1].size() < (k - p)) {
    cout << "NO";
    return 0;
  }
  for (int i = 0; i < (k - p); ++i) {
    ans.push_back({A[1].back()});
    A[1].pop_back();
  }
  if (A[0].size() + A[1].size() / 2 < p) {
    cout << "NO";
    return 0;
  }
  for (int i = 0; i < p; ++i) {
    if (A[0].size() > 0) {
      ans.push_back({A[0].back()});
      A[0].pop_back();
    } else {
      int64 val1, val2;
      val1 = A[1].back();
      A[1].pop_back();
      val2 = A[1].back();
      A[1].pop_back();
      ans.push_back({val1, val2});
    }
  }
  if (A[1].size() % 2 != 0) {
    cout << "NO";
    return 0;
  }
  for (int i = 0; i < 2; ++i) {
    for (int j = 0; j < A[i].size(); ++j) {
      ans[0].push_back(A[i][j]);
    }
  }
  cout << "YES" << endl;
  for (int i = 0; i < ans.size(); ++i) {
    cout << ans[i].size() << " ";
    for (int j = 0; j < ans[i].size(); ++j) {
      cout << ans[i][j] << " ";
    }
    cout << endl;
  }
  return 0;
}
