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.io.*;
import java.util.*;

public class Solution {
    public static void main(String[] args) throws IOException {
        new Solution().run();
    }
    StringTokenizer tok;
    BufferedReader reader;
    PrintWriter out;
    void run() throws IOException {
        reader = new BufferedReader(new InputStreamReader(System.in));
        out = new PrintWriter(System.out);
        //reader = new BufferedReader(new FileReader(new File("input.txt")));
        //out = new PrintWriter(new File("output.txt"));
        tok = null;
        solve();
        out.close();
    }
    String nextString() throws IOException {
        while(tok == null || !tok.hasMoreTokens()){
            tok = new StringTokenizer(reader.readLine());
        }
        return tok.nextToken();
    }
    int nextInt() throws IOException {
        return Integer.parseInt(nextString());
    }
    long nextLong() throws IOException {
        return Long.parseLong(nextString());
    }
    double nextDouble() throws IOException {
        return Double.parseDouble(nextString());
    }

    int c3,c4,c5,s;
    boolean ok(int k3,int k4,int k5){
        //assert c3*k3+c4*k4+c5*k5==s;
        //assert (0<=k3 && k3<=k4 && k4<=k5);
        if (c3*k3+c4*k4+c5*k5!=s) return false;
        if (!(0<=k3 && k3<=k4 && k4<=k5)) return false;
        return true;
    }
    int min_ans = Integer.MAX_VALUE;
    int v3,v4,v5;
    void update(int k3,int k4,int k5){
        if (!ok(k3,k4,k5)) return;
        int ans = Math.abs(c3*k3-c4*k4)+Math.abs(c4*k4-c5*k5);
        if (ans < min_ans){
            min_ans = ans;
            v3=k3;
            v4=k4;
            v5=k5;
        }
    }
    //k*b>=a ----> k>=a/b
    int div_ge(int a,int b){
        if (b<0){a=-a;b=-b;}
        if (a<=0) return a/b;
        //k*b >= a
        if (a%b==0) return a/b;
        return a/b+1;
    }
    //k*b<=a ----> k<=a/b
    int div_le(int a,int b){
        if (b<0){a=-a;b=-b;}
        if (a>=0)return a/b;
        //k*b <= -a
        if (a%b==0) return a/b;
        return a/b-1;
    }
    int gx,gy;
    int gcdex(int a,int b){
        if (a==0){
            gx=0;
            gy=1;
            return b;
        }
        else{
            int g = gcdex(b%a,a);
            int x1=gx,y1=gy;
            gx=y1-(b/a)*x1;
            gy=x1;
            return g;
        }
    }
    void tryfind(int k4){
        if (k4==246){
            k4=k4;
        }
        int a = c3;
        int b = c5;
        int c = s-c4*k4;
        int g = gcdex(Math.abs(a),Math.abs(b));
        if (c%g!=0) return;
        gx*=c/g;
        gy*=c/g;
        if (a<0) gx*=-1;
        if (b<0) gy*=-1;
        int ag = a/g;
        int bg = b/g;
        int min_k = Integer.MIN_VALUE;
        int max_k = Integer.MAX_VALUE;
        {
            int k_ge = div_ge(-gx,bg);//0<=k3
            int k_le = div_le(k4-gx,bg);//k3<=k4
            int k_le2 = div_le(gy-k4,ag);//k4<=k5
            int k_ge2 = div_ge(gy-s,ag);//k5<=s

            min_k=Math.max(min_k,k_ge);
            min_k=Math.max(min_k,k_ge2);
            max_k=Math.min(max_k,k_le);
            max_k=Math.min(max_k,k_le2);
        }
        if (min_k<=max_k){
            int k,k3,k5;

            k = min_k;
            k3=gx+k*bg;
            k5=gy-k*ag;
            update(k3,k4,k5);

            k = max_k;
            k3=gx+k*bg;
            k5=gy-k*ag;
            update(k3,k4,k5);

            int k1 = ((c4*k4)/c3-gx)/bg;
            k=k1;
            if (k>=min_k && k<=max_k){
                k3=gx+k*bg;
                k5=gy-k*ag;
                update(k3,k4,k5);
            }
            k=k1+1;
            if (k>=min_k && k<=max_k){
                k3=gx+k*bg;
                k5=gy-k*ag;
                update(k3,k4,k5);
            }
            k=k1-1;
            if (k>=min_k && k<=max_k){
                k3=gx+k*bg;
                k5=gy-k*ag;
                update(k3,k4,k5);
            }

            int k2 = (gy-(c4*k4)/c5)/ag;
            k=k2;
            if (k>=min_k && k<=max_k){
                k3=gx+k*bg;
                k5=gy-k*ag;
                update(k3,k4,k5);
            }
            k=k2+1;
            if (k>=min_k && k<=max_k){
                k3=gx+k*bg;
                k5=gy-k*ag;
                update(k3,k4,k5);
            }
            k=k2-1;
            if (k>=min_k && k<=max_k){
                k3=gx+k*bg;
                k5=gy-k*ag;
                update(k3,k4,k5);
            }
        }
    }
    void solve() throws IOException {
        int n = nextInt();
        s = nextInt();
        c3=c4=c5=0;
        for(int i=0;i<n;i++){
            int v = nextInt();
            if (v==3) c3++;
            if (v==4) c4++;
            if (v==5) c5++;
        }
        for(int k4=0;c4*k4<=s;k4++)
            tryfind(k4);
        if (min_ans == Integer.MAX_VALUE)
            out.println("-1");
        else
            out.println(v3+" "+v4+" "+v5);
        //out.println(min_ans);
    }
}