Score : $200$ points
You are given three strings $S_1, S_2, S_3$ consisting of lowercase English letters, and a string $T$ consisting of 1
, 2
, 3
.
Concatenate the three strings according to the characters in $T$ and print the resulting string. Formally, conform to the following instructions.
1
;2
;3
.1
, 2
, and 3
.Input is given from Standard Input in the following format:
$S_1$ $S_2$ $S_3$ $T$
Print the answer.
mari to zzo 1321
marizzotomari
We have $s_1 = $ mari
, $s_2 = $ zzo
, $s_3 = $ to
, $s_4 = $ mari
. Concatenate these and print the resulting string: marizzotomari
.
abra cad abra 123
abracadabra
a b c 1
a