#define _CRT_SECURE_NO_WARNINGS
#include <string.h>
#include <stdio.h>
int main() {
char phone[100];
char *d[100];
int i = 0;
scanf("%[^\n]", phone);
while (d[i++] = strtok(!i ? phone : NULL, " "));
i = -1;
while (d[++i]) {
if (!(i & 1))
printf("%s ", d[i]);
}
return 0;
}