Stroke Count
Time limit2sMemory limit1024 MB
Given a string of j, o, and i, the task is to sum their stroke counts (2, 1, and 2).
- Level
Easy1 of 10
- Topics
- String, Simulation
- Solved
- No attempts yet
Problem
The stroke count of the character j is 2, the character o has 1 stroke, and the character i has 2 strokes.
You are given a string of length . Each character of is j, o, or i.
Find the total stroke count of the characters in .
Input
The input is given in the following format.
N
S
Output
Print the total stroke count of the characters in without the unit (画).
Print only the answer. Do not print any other text, including prompts for input.
Constraints
- .
- is a string of length .
- Each character of is
j,o, ori. - is an integer.