using System;
using System.Collections.Generic;
using System.Linq;
namespace restless
{
class Program
static void Main()
//элементы вводятся в 1 строку
List<int> lst = new List<int>(Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray());
for (int i = 0; i < lst.Count; i++)
if (lst[i] % 2 != 0)
lst.RemoveAt(i);
Console.Write($"{lst[i]} ");
}
using System;
using System.Collections.Generic;
using System.Linq;
namespace restless
{
class Program
{
static void Main()
{
//элементы вводятся в 1 строку
List<int> lst = new List<int>(Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray());
for (int i = 0; i < lst.Count; i++)
if (lst[i] % 2 != 0)
lst.RemoveAt(i);
for (int i = 0; i < lst.Count; i++)
Console.Write($"{lst[i]} ");
}
}
}