Count .

AtCoder
IDabc442_a
Time2000ms
Memory256MB
Difficulty
You are given a string $S$ consisting of lowercase English letters. Here, we define the number of **dots** in a lowercase English letter as follows: * If the lowercase English letter is `i` or `j`: $1$ dot * If the lowercase English letter is neither `i` nor `j`: $0$ dots Find the sum of the numbers of dots over all characters in $S$. ## Constraints * $S$ is a string consisting of lowercase English letters with length between $1$ and $10$, inclusive. ## Input The input is given from Standard Input in the following format: $S$ [samples]
Samples
Input #1
aiiaj
Output #1
3

The numbers of dots in `a`, `i`, `i`, `a`, `j` are $0$, $1$, $1$, $0$, $1$, respectively.
We have $0 + 1 + 1 + 0 + 1 = 3$, so print $3$.
Input #2
abcedfgh
Output #2
0
Input #3
jjjjjj
Output #3
6
API Response (JSON)
{
  "problem": {
    "name": "Count .",
    "description": {
      "content": "You are given a string $S$ consisting of lowercase English letters. Here, we define the number of **dots** in a lowercase English letter as follows: *   If the lowercase English letter is `i` or `j`:",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc442_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $S$ consisting of lowercase English letters.\nHere, we define the number of **dots** in a lowercase English letter as follows:\n\n*   If the lowercase English letter is `i` or `j`:...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments