"""pair"""
def makelist(count, lista):
    """manual for loop to find gilf"""
    if count <= 8:
        return makelist(count+1, lista+[(int(input()))])
    print(*list(filter(lambda x: x%2 == 0, lista)))
makelist(1, [])

d6db814c7d1a196c93fde14dbb275445b226eb8a
<mask token>

<mask token>


def makelist(count, lista):
    """manual for loop to find gilf"""
    if count <= 8:
        return makelist(count + 1, lista + [int(input())])
    print(*list(filter(lambda x: x % 2 == 0, lista)))


<mask token>

<mask token>


def makelist(count, lista):
    """manual for loop to find gilf"""
    if count <= 8:
        return makelist(count + 1, lista + [int(input())])
    print(*list(filter(lambda x: x % 2 == 0, lista)))


makelist(1, [])

"""pair"""
def makelist(count, lista):
    """manual for loop to find gilf"""
    if count <= 8:
        return makelist(count+1, lista+[(int(input()))])
    print(*list(filter(lambda x: x%2 == 0, lista)))
makelist(1, [])
