1059: 奇偶顺序输出

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:3 Solved:2

Description

输入10个整数,然后按1、3、5、7、9的顺序输出其中奇数序号的数字,中间用空格分隔;接着换行后输出第2、4、6、8、10个数字,,中间用空格分隔。

Input

一行,10个整数,中间用空格分隔。

Output

两行,第一行5个整数,按奇数序号依次输出,中间用空格分隔。第二行5个整数,按偶数序号依次输出,中间用空格分隔。

Sample Input Copy

1 2 3 4 5 6 7 8 9 10

Sample Output Copy

1 3 5 7 9
2 4 6 8 10