program sort;

var a,b,i,i1,i2,j,k,l,m,n,o,p,r,s,t,u,v,y,z,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15,s16: integer;
      x: array[integer] of integer;

begin

      read(a, b);
          for i:=1 to a do
          read(x[i]);
                for i:=1 to a do begin
                    if x[i]=x[1] then inc(v);
                if x[2]<>x[1] then if x[i]=x[2] then inc(u);
                if x[3]<>x[1] then if x[i]=x[3] then inc(t);
                if x[4]<>x[1] then if x[i]=x[4] then inc(s);
                if x[5]<>x[1] then if x[i]=x[5] then inc(r);
                if x[6]<>x[1] then if x[i]=x[6] then inc(p);
                if x[7]<>x[1] then if x[i]=x[7] then inc(o);
                if x[8]<>x[1] then if x[i]=x[8] then inc(n);
                if x[9]<>x[1] then if x[i]=x[9] then inc(m);
                if x[10]<>x[1] then if x[i]=x[10] then inc(l);
                if x[11]<>x[1] then if x[i]=x[11] then inc(k);
                if x[12]<>x[1] then if x[i]=x[12] then inc(j);
                if x[13]<>x[1] then if x[i]=x[13] then inc(y) ;
                if x[14]<>x[1] then if x[i]=x[14] then inc(z)  ;
                if x[15]<>x[1] then if x[i]=x[15] then inc(s1)  ;
                if x[16]<>x[1] then if x[i]=x[16] then inc(s2)   ;
                if x[17]<>x[1] then if x[i]=x[17] then inc(s3)    ;
                if x[18]<>x[1] then if x[i]=x[18] then inc(s4)     ;
                if x[19]<>x[1] then if x[i]=x[19] then inc(s5)     ;
                if x[20]<>x[1] then if x[i]=x[20] then inc(s6)      ;
                if x[21]<>x[1] then if x[i]=x[21] then inc(s7)       ;
                if x[22]<>x[1] then if x[i]=x[22] then inc(s8)       ;
                if x[23]<>x[1] then if x[i]=x[23] then inc(s9)        ;
                if x[24]<>x[1] then if x[i]=x[24] then inc(s10)        ;
                if x[25]<>x[1] then if x[i]=x[25] then inc(s11)        ;
                if x[26]<>x[1] then if x[i]=x[26] then inc(s12)         ;
                if x[27]<>x[1] then if x[i]=x[27] then inc(s13)         ;
                if x[28]<>x[1] then if x[i]=x[28] then inc(s14)         ;
                if x[29]<>x[1] then if x[i]=x[29] then inc(s15)         ;
                if x[30]<>x[1] then if x[i]=x[30] then inc(s16);


               end;

write(v,u,s,t,r,p,o,n,l,k,m,y,j,s1,z,s3,s4,s2,s5,s7,s6,s12,s8,s10,s9,s11,s12,s15,s14,s13,s16);
readln;
end.


