Problem: While most students still sit their exams, the tractor college has completed the summer exam session. In fact, students study only one subject at this college — the Art of Operating a Tractor. Therefore, at the end of a term a student gets only one mark, a three (satisfactory), a four (good) or a five (excellent). Those who score lower marks are unfortunately expelled.

The college has n students, and oddly enough, each of them can be on scholarship. The size of the scholarships varies each term. Since the end-of-the-term exam has just ended, it's time to determine the size of the scholarship to the end of next term.

The monthly budget for the scholarships of the Tractor college is s rubles. To distribute the budget optimally, you must follow these rules:

  * The students who received the same mark for the exam, should receive the same scholarship;
  * Let us denote the size of the scholarship (in roubles) for students who have received marks 3, 4 and 5 for the exam, as k3, k4 and k5, respectively. The values k3, k4 and k5 must be integers and satisfy the inequalities 0 ≤ k3 ≤ k4 ≤ k5;
  * Let's assume that c3, c4, c5 show how many students received marks 3, 4 and 5 for the exam, respectively. The budget of the scholarship should be fully spent on them, that is, c3·k3 + c4·k4 + c5·k5 = s;
  * Let's introduce function <image> — the value that shows how well the scholarships are distributed between students. In the optimal distribution function f(k3, k4, k5) takes the minimum possible value. 



Given the results of the exam, and the budget size s, you have to find the optimal distribution of the scholarship.

Input

The first line has two integers n, s (3 ≤ n ≤ 300, 1 ≤ s ≤ 3·105) — the number of students and the budget size for the scholarship, respectively. The second line contains n integers, where the i-th number represents the mark that the i-th student got for the exam. It is guaranteed that at each mark was given to at least one student.

Output

On a single line print three integers k3, k4 and k5 — the sought values that represent the optimal distribution of the scholarships. If there are multiple optimal answers, print any of them. If there is no answer, print -1.

Examples

Input

5 11
3 4 3 5 5


Output

1 3 3


Input

6 15
5 3 3 4 4 5


Output

-1

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
template <typename T>
bool umax(T &a, const T &b) {
  return b <= a ? false : (a = b, true);
}
template <typename T>
bool umin(T &a, const T &b) {
  return b >= a ? false : (a = b, true);
}
template <typename T>
void V2A(T a[], const vector<T> &b) {
  for (int i = 0; i < b.size(); i++) a[i] = b[i];
}
template <typename T>
void A2V(vector<T> &a, const T b[]) {
  for (int i = 0; i < a.size(); i++) a[i] = b[i];
}
const double PI = acos(-1.0);
const int INF = 1e9 + 7;
long long x, y, z, a, b, c, a0, b0;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
void gcd(long long a, long long b, long long &d, long long &x, long long &y) {
  if (!b) {
    d = a;
    x = 1;
    y = 0;
  } else {
    gcd(b, a % b, d, y, x);
    y -= x * (a / b);
  }
}
long long f(long long k) {
  long long xx = x + k * b0, yy = y - k * a0;
  return abs(xx * a - yy * b) + abs(yy * b - z * c);
}
bool chk(long long k1, long long k2) {
  if (x + k1 * b0 < 0) return false;
  if (x + k1 * b0 > z) return true;
  if (y - k1 * a0 < 0) return true;
  if (y - k1 * a0 > z) return false;
  if (x + k2 * b0 < 0) return false;
  if (x + k2 * b0 > z) return true;
  if (y - k2 * a0 < 0) return true;
  if (y - k2 * a0 > z) return false;
  if (x + k1 * b0 > y - k1 * a0) return true;
  if (x + k2 * b0 > y - k2 * a0) return true;
  return f(k1) <= f(k2);
}
int main() {
  int n, s;
  cin >> n >> s;
  int cnt[3] = {};
  for (int i = 0; i < n; i++) {
    int x;
    scanf("%d", &x);
    cnt[x - 3]++;
  }
  a = cnt[0], b = cnt[1], c = cnt[2];
  long long ans = INF, ix, iy, iz;
  for (z = 1; z * c <= s; z++) {
    long long g;
    gcd(a, b, g, x, y);
    if ((s - z * c) % g) continue;
    long long K = (s - z * c) / g;
    x *= K;
    y *= K;
    a0 = a / g;
    b0 = b / g;
    long long L = -INF, R = INF;
    while (L < R) {
      long long M1 = L + (R - L) / 3, M2 = R - (R - L) / 3;
      if (chk(M1, M2))
        R = M2 - 1;
      else
        L = M1 + 1;
    }
    long long xx = x + L * b0, yy = y - L * a0;
    if (0 <= xx && xx <= yy && yy <= z) {
      if (umin(ans, f(L))) {
        ix = xx;
        iy = yy;
        iz = z;
      }
    }
  }
  if (ans < INF)
    cout << ix << " " << iy << " " << iz << endl;
  else
    puts("-1");
  return 0;
}