{"raw_statement":[{"iden":"problem statement","content":"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`.\nConcatenate the three strings according to the characters in $T$ and print the resulting string. Formally, conform to the following instructions.\n\n*   For each integer $i$ such that $1 \\leq i \\leq |T|$, let the string $s_i$ be defined as follows:\n    *   $S_1$, if the $i$\\-th character of $T$ is `1`;\n    *   $S_2$, if the $i$\\-th character of $T$ is `2`;\n    *   $S_3$, if the $i$\\-th character of $T$ is `3`.\n*   Concatenate the strings $s_1, s_2, \\dots, s_{|T|}$ in this order and print the resulting string."},{"iden":"constraints","content":"*   $1 \\leq |S_1|, |S_2|, |S_3| \\leq 10$\n*   $1 \\leq |T| \\leq 1000$\n*   $S_1$, $S_2$, and $S_3$ consist of lowercase English letters.\n*   $T$ consists of `1`, `2`, and `3`."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$S_1$\n$S_2$\n$S_3$\n$T$"},{"iden":"sample input 1","content":"mari\nto\nzzo\n1321"},{"iden":"sample output 1","content":"marizzotomari\n\nWe have $s_1 = $ `mari`, $s_2 = $ `zzo`, $s_3 = $ `to`, $s_4 = $ `mari`. Concatenate these and print the resulting string: `marizzotomari`."},{"iden":"sample input 2","content":"abra\ncad\nabra\n123"},{"iden":"sample output 2","content":"abracadabra"},{"iden":"sample input 3","content":"a\nb\nc\n1"},{"iden":"sample output 3","content":"a"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}