{"raw_statement":[{"iden":"problem statement","content":"You are given a string $S$ consisting of lowercase English letters. We will write down this string, starting a new line after every $w$ letters. Print the string obtained by concatenating the letters at the beginnings of these lines from top to bottom."},{"iden":"constraints","content":"*   $1 \\leq w \\leq |S| \\leq 1000$\n*   $S$ consists of lowercase English letters.\n*   $w$ is an integer."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$S$\n$w$"},{"iden":"sample input 1","content":"abcdefgh\n3"},{"iden":"sample output 1","content":"adg\n\nWhen we write down `abcdefgh`, starting a new line after every three letters, we get the following:\nabc  \ndef  \ngh\nConcatenating the letters at the beginnings of these lines, we obtain `adg`."},{"iden":"sample input 2","content":"lllll\n1"},{"iden":"sample output 2","content":"lllll"},{"iden":"sample input 3","content":"souuundhound\n2"},{"iden":"sample output 3","content":"suudon"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}