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 JAVA):

Solution:
import java.util.Scanner;


public class E {

    static long xg, yg;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int s = sc.nextInt();
        long c3 = 0, c4 = 0, c5 = 0;
        for (int i = 1; i <= n; i++) {
            int t = sc.nextInt();
            if (t==3)
                c3++;
            else {
                if (t==4)
                    c4++;
                else
                    c5++;
            }
        }
        long min = Long.MAX_VALUE, k33 = 0, k44 = 0, k55 = 0;
        for (int k4 = 0; k4*c4 <= s; k4++) {
            long a = c3, b = c5, c = s-c4*k4;
            long g = gcd(a, b);
            if (c % g != 0)
                continue;
            long x0 = xg*(c/g), y0 = yg*(c/g);
            long k_min = bigger(-x0, b/g), k_max = Math.min(less(k4-x0, b/g), less(y0-k4, a/g));
            if (k_max < k_min)
                continue;
            long k_min_temp = k_min, k_max_temp = k_max;
            k_min_temp = Math.max(k_min_temp, bigger(c4*k4-x0*c3, c3*(b/g)));
            k_min_temp = Math.max(k_min_temp, bigger(c5*y0-c4*k4, c5*(a/g)));
            long z, k3, k5;
            if (k_max_temp >= k_min_temp) {
                k3 = x0+k_min_temp*(b/g);
                k5 = y0-k_min_temp*(a/g);
                z = c3*k3-c5*k5;
                if (z < min) {
                    min = z;
                    k33 = k3;
                    k44 = k4;
                    k55 = k5;
                }
            }
            k_min_temp = k_min;
            k_max_temp = k_max;
            k_min_temp = Math.max(k_min_temp, bigger(c4*k4-x0*c3, c3*(b/g)));
            k_max_temp = Math.min(k_max_temp, less(c5*y0-c4*k4, c5*(a/g)));
            if (k_max_temp >= k_min_temp) {
                z = c3*x0+c5*y0-2*c4*k4;
                if (c3*b > c5*a) {
                    z += k_min_temp*(c3*(b/g)-c5*(a/g));
                    k3 = x0+k_min_temp*(b/g);
                    k5 = y0-k_min_temp*(a/g);
                }
                else {
                    z += k_max_temp*(c3*(b/g)-c5*(a/g));
                    k3 = x0+k_max_temp*(b/g);
                    k5 = y0-k_max_temp*(a/g);
                }
                if (z < min) {
                    min = z;
                    k33 = k3;
                    k44 = k4;
                    k55 = k5;
                }
            }
            k_min_temp = k_min;
            k_max_temp = k_max;
            k_max_temp = Math.min(k_max_temp, less(c4*k4-x0*c3, c3*(b/g)));
            k_min_temp = Math.max(k_min_temp, bigger(c5*y0-c4*k4, c5*(a/g)));
            if (k_max_temp >= k_min_temp) {
                k3 = x0+k_max_temp*(b/g);
                k5 = y0-k_min_temp*(a/g);
                z = 2*c4*k4-c3*x0-c5*y0;
                if (c5*a > c3*b) {
                    z += k_min_temp*(c5*(a/g)-c3*(b/g));
                    k3 = x0+k_min_temp*(b/g);
                    k5 = y0-k_min_temp*(a/g);
                }
                else {
                    z += k_max_temp*(c5*(a/g)-c3*(b/g));
                    k3 = x0+k_max_temp*(b/g);
                    k5 = y0-k_max_temp*(a/g);
                }
                if (z < min) {
                    min = z;
                    k33 = k3;
                    k44 = k4;
                    k55 = k5;
                }
            }
            k_min_temp = k_min;
            k_max_temp = k_max;
            k_max_temp = Math.min(k_max_temp, less(c4*k4-x0*c3, c3*(b/g)));
            k_max_temp = Math.min(k_max_temp, less(c5*y0-c4*k4, c5*(a/g)));
            if (k_max_temp >= k_min_temp) {
                k3 = x0+k_max_temp*(b/g);
                k5 = y0-k_max_temp*(a/g);
                z = c5*k5-c3*k3;
                if (z < min) {
                    min = z;
                    k33 = k3;
                    k44 = k4;
                    k55 = k5;
                }
            }
        }
        if (min==Long.MAX_VALUE)
            System.out.println(-1);
        else
            System.out.println(k33+" "+k44+" "+k55);
    }
    private static long less(long a, long b) {
        long res = a/b;
        if (a % b != 0 && a < 0)
            res--;
        return res;
    }
    private static long bigger(long a, long b) {
        long res = a/b;
        if (a % b != 0 && a >= 0)
            res++;
        return res;
    }
    private static long gcd(long a, long b) {
        if (b==0) {
            xg = 1;
            yg = 0;
            return a;
        }
        long d = gcd(b, a % b);
        long t = xg;
        xg = yg;
        yg = t-a/b * yg;
        return d;
    }
}
/*
est: #4, время: 80 мс., память: 41996 КБ, код возврата: 0, код возврата чекера: 1, вердикт: WRONG_ANSWER
Ввод

5 30
3 3 3 4 5

Вывод

2 6 6

Ответ

3 10 11

Протокол тестирования

wrong answer answer does not satisfy  c3*k3 + c4*k4 + c5*k5 = s

*/