program zaznaczanie_licz_parzystych_w_liscie;
type elem=record
data: integer;
isParzysta: boolean
end;
tab=array[1..10]of elem;
lst = record
elementy: tab;
ile: integer
end;
var
i, count: integer;
x: lst;
begin
x.ile := 0;
i := 1;
while not eof do
begin
read(x.elementy[i].data);
x.elementy[i].isParzysta := false;
i := i + 1;
x.ile := x.ile + 1;
if i > 10 then
break;
end;
for i := 1 to x.ile do
begin
if x.elementy[i].data mod 2 = 0 then
x.elementy[i].isParzysta := true;
end;
for i := 1 to x.ile do
begin
if x.elementy[i].isParzysta then
writeln(x.elementy[i].data);
end;
end.
cHJvZ3JhbSB6YXpuYWN6YW5pZV9saWN6X3Bhcnp5c3R5Y2hfd19saXNjaWU7CnR5cGUgZWxlbT1yZWNvcmQKICAgICAgICAgICAgICAgIGRhdGE6IGludGVnZXI7ICAgCiAgICAgICAgICAgICAgICBpc1Bhcnp5c3RhOiBib29sZWFuIAogICAgICAgICBlbmQ7CgogICAgIHRhYj1hcnJheVsxLi4xMF1vZiBlbGVtOyAgICAKCiAgICAgbHN0ID0gcmVjb3JkICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIGVsZW1lbnR5OiB0YWI7ICAKICAgICAgICAgICAgICAgIGlsZTogaW50ZWdlcgogICAgICAgICAgICAgZW5kOwp2YXIKICAgIGksIGNvdW50OiBpbnRlZ2VyOyAgICAgICAgCiAgICB4OiBsc3Q7ICAKICAgIApiZWdpbgogICB4LmlsZSA6PSAwOwogICBpIDo9IDE7CiAgIAogICB3aGlsZSBub3QgZW9mIGRvCiAgIGJlZ2luCiAgICAgcmVhZCh4LmVsZW1lbnR5W2ldLmRhdGEpOwogICAgIHguZWxlbWVudHlbaV0uaXNQYXJ6eXN0YSA6PSBmYWxzZTsKICAgICBpIDo9IGkgKyAxOwogICAgIHguaWxlIDo9IHguaWxlICsgMTsKICAgICAKICAgICBpZiBpID4gMTAgdGhlbgogICAgICAgYnJlYWs7CiAgIGVuZDsKCiAgZm9yIGkgOj0gMSB0byB4LmlsZSBkbwogIGJlZ2luCiAgICBpZiB4LmVsZW1lbnR5W2ldLmRhdGEgbW9kIDIgPSAwIHRoZW4KICAgICAgeC5lbGVtZW50eVtpXS5pc1Bhcnp5c3RhIDo9IHRydWU7CiAgZW5kOwoKICAgZm9yIGkgOj0gMSB0byB4LmlsZSBkbwogICBiZWdpbgogICAgIGlmIHguZWxlbWVudHlbaV0uaXNQYXJ6eXN0YSB0aGVuCiAgICAgICB3cml0ZWxuKHguZWxlbWVudHlbaV0uZGF0YSk7CiAgIGVuZDsKCmVuZC4=