Students are picked from a group of students to give speeches. To be fair, the head and tail of the queue are drawn alternately. Please implement the process of leaving the queue through the program.
输入描述:
A group of students' names


输出描述:
Print the names of the students at the head and tail of the queue alternately
示例1

输入

Tom Jim Lily Lucy Mary

输出

Tom
Mary
Jim
Lucy
Lily
加载中...