{"problem":{"name":"Acrostic","description":{"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 ","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"soundhound2018_summer_qual_b"},"statements":[{"statement_type":"Markdown","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.\n\n## Constraints\n\n*   $1 \\leq w \\leq |S| \\leq 1000$\n*   $S$ consists of lowercase English letters.\n*   $w$ is an integer.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$S$\n$w$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"soundhound2018_summer_qual_b","tags":[],"sample_group":[["abcdefgh\n3","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`."],["lllll\n1","lllll"],["souuundhound\n2","suudon"]],"created_at":"2026-03-03 11:01:14"}}