#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, e = 0, o = 0, k, p, j;
  long long int arr[100005];
  vector<long long int> v[100005], od, ev;
  cin >> n >> k >> p;
  for (i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] % 2 == 0) {
      ev.push_back(arr[i]);
      e++;
    } else {
      od.push_back(arr[i]);
      o++;
    }
  }
  if (o < (k - p)) {
    cout << "NO\n";
    return 0;
  }
  o = o - k + p;
  if (o % 2 == 1) {
    cout << "NO\n";
    return 0;
  }
  if ((e + (o) / 2) < p) {
    cout << "NO\n";
    return 0;
  }
  cout << "YES\n";
  int j1 = 0, j2 = k - p;
  for (i = 0; i < od.size(); i++) {
    j1++;
    if (j1 <= k - p) {
      v[j1].push_back(od[i]);
    } else {
      j2++;
      if (j2 > k) {
        j2 = k;
      }
      v[j2].push_back(od[i]);
      i++;
      v[j2].push_back(od[i]);
    }
  }
  for (i = 0; i < ev.size(); i++) {
    j2++;
    if (j2 <= k) {
      v[j2].push_back(ev[i]);
    } else {
      v[k].push_back(ev[i]);
    }
  }
  for (i = 1; i <= k; i++) {
    cout << v[i].size() << " ";
    for (j = 0; j < v[i].size(); j++) {
      cout << v[i][j] << " ";
    }
    cout << "\n";
  }
  return 0;
}
