Input
a b c d e f g h i j 1 2 3 4 5 6 7 8 9 0 - * - * - * - * - *
Output
a 1 - b 2 * c 3 - d 4 * e 5 - f 6 * g 7 - h 8 * i 9 - j 0 *
Input
A B A B A B - | - | - | m m m w w w
Output
A - m B | m A - m B | w A - w B | w
Input
title1 title2 title3 john paul hellen 34 35 39
Output
title1 john 34 title2 paul 35 title3 hellen 39