{ NOTE: it is recommended to use this even if you don't understand the following code }

const
    MAXB = 200000;
    MAXN = 200000;

var
    B, M, N, i : LongInt;
    A          : Array[0..MAXN-1] of LongInt;
    R          : Array[0..MAXB-1] of LongInt;

begin
{
    uncomment the two following lines if you want to read/write from files
    assign(input,  'input.txt');  reset(input);
    assign(output, 'output.txt'); rewrite(output);
}

    ReadLn(N, M);

    for i:=0 to N-1 do
        Read(A[i]);
    ReadLn();

    B := 0;
    for i := 0 to MAXB-1 do R[i] := 0;

    { INSERT YOUR CODE HERE }


    WriteLn(B);
    for i:=0 to B-1 do
        Write(R[i], ' ');
    WriteLn();

end.
