#include <stdio.h>
int main()
{
int t;
scanf("%d", &t);
while (t--)
{
long int n;
scanf("%ld", &n);
if(n % 2 == 0)
{
printf("%ld\n", n);
}
}
return 0;
}
#include <stdio.h>
int main()
{
int t;
scanf("%d", &t);
while (t--)
{
long int n;
scanf("%ld", &n);
if(n % 2 == 0)
{
printf("%ld\n", n);
}
}
return 0;
}