i18n

AtCoder
IDabc069_b
Time2000ms
Memory256MB
Difficulty
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are $18$ letters between the first `i` and the last `n`. You are given a string $s$ of length at least $3$ consisting of lowercase English letters. Abbreviate $s$ in the same way. ## Constraints * $3 ≤ |s| ≤ 100$ ($|s|$ denotes the length of $s$.) * $s$ consists of lowercase English letters. ## Input Input is given from Standard Input in the following format: $s$ [samples]
Samples
Input #1
internationalization
Output #1
i18n
Input #2
smiles
Output #2
s4s
Input #3
xyz
Output #3
x1z
API Response (JSON)
{
  "problem": {
    "name": "i18n",
    "description": {
      "content": "The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are $18$ letters between the first `i` and the last `n`. You are given a string $s$ of length at",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc069_b"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are $18$ letters between the first `i` and the last `n`.\nYou are given a string $s$ of length at...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments