#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int
input(
int
a[])
{
int
i=0;
while
(
scanf
(
"%d"
,&a[i])!=EOF)
i++;
return
i;
}
int
del(
int
a[],
int
n)
{
int
j=0;
for
(
int
i=0;i<n;i++){
if
(a[i]%2!=0)
a[j++]=a[i];
}
return
j;
}
int
main()
{
int
data[10000], i, cnt;
cnt=input(data);
cnt=del(data,cnt);
if
(cnt>0){
printf
(
"%d"
,data[0]);
for
(i=1;i<cnt;i++)
printf
(
" %d"
,data[i]);
}
return
0;
}