Begin
var a := new Stack<integer>;
var input:integer;
Read(input);
while(input<>0) do
begin
if (input mod 2 = 0) and (input > 50) then
a.Push(input);
end;
a.Println;
end.
===== PascalABC.NET =====
ReadSeqIntegerWhile(p -> p <> 0).
Where(p -> p.IsEven and (p >= 50)).Println
Begin
var a := new Stack<integer>;
var input:integer;
Read(input);
while(input<>0) do
begin
if (input mod 2 = 0) and (input > 50) then
a.Push(input);
Read(input);
end;
a.Println;
end.
===== PascalABC.NET =====
begin
ReadSeqIntegerWhile(p -> p <> 0).
Where(p -> p.IsEven and (p >= 50)).Println
end.