Echo

AtCoder
IDabc306_a
Time2000ms
Memory256MB
Difficulty
You are given a string $S$ of length $N$ consisting of lowercase English letters. We denote the $i$\-th character of $S$ by $S_i$. Print the string of length $2N$ obtained by concatenating $S_1,S_1,S_2,S_2,\dots,S_N$, and $S_N$ in this order. For example, if $S$ is `beginner`, print `bbeeggiinnnneerr`. ## Constraints * $N$ is an integer such that $1 \le N \le 50$. * $S$ is a string of length $N$ consisting of lowercase English letters. ## Input The input is given from Standard Input in the following format: $N$ $S$ [samples]
Samples
Input #1
8
beginner
Output #1
bbeeggiinnnneerr

It is the same as the example described in the problem statement.
Input #2
3
aaa
Output #2
aaaaaa
API Response (JSON)
{
  "problem": {
    "name": "Echo",
    "description": {
      "content": "You are given a string $S$ of length $N$ consisting of lowercase English letters.   We denote the $i$\\-th character of $S$ by $S_i$.   Print the string of length $2N$ obtained by concatenating $S_1,S_",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc306_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $S$ of length $N$ consisting of lowercase English letters.  \nWe denote the $i$\\-th character of $S$ by $S_i$.  \nPrint the string of length $2N$ obtained by concatenating $S_1,S_...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments