#include <bits/stdc++.h>
using namespace std;
int a[105];
int ans[105];
int main() {
  int n, w;
  scanf("%d%d", &n, &w);
  for (int i = 1; i <= n; ++i) {
    scanf("%d", a + i);
    ans[i] += (a[i] / 2) + (a[i] % 2);
    w -= ans[i];
  }
  if (w < 0) {
    printf("-1\n");
    return 0;
  }
  for (int i = 1; i <= n; ++i) {
    int mx = 0;
    for (int i = 1; i <= n; ++i) {
      if (a[mx] < a[i]) mx = i;
    }
    if (ans[mx] + w <= a[mx]) {
      ans[mx] += w;
      w = 0;
    } else {
      w -= a[mx] - ans[mx];
      ans[mx] = a[mx];
    }
    a[mx] = 0;
    if (w <= 0) break;
  }
  if (w < 0) {
    printf("-1\n");
    return 0;
  }
  for (int i = 1; i <= n; ++i) printf("%d ", ans[i]);
  return 0;
}
