Under construction

Still being built. Things may change

Stroke Count

Time limit2sMemory limit1024 MB

Summary
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 SS of length NN. Each character of SS is j, o, or i.

Find the total stroke count of the characters in SS.

Input

The input is given in the following format.

N
S

Output

Print the total stroke count of the characters in SS without the unit (画).

Print only the answer. Do not print any other text, including prompts for input.

Constraints

  • 1≤N≤1001 \le N \le 100.
  • SS is a string of length NN.
  • Each character of SS is j, o, or i.
  • NN is an integer.

Examples3

  1. Example 1

    Input
    6
    jjooii
    
    Expected output
    10
    
  2. Example 2

    Input
    1
    i
    
    Expected output
    2
    
  3. Example 3

    Input
    13
    joiojiioijoio
    
    Expected output
    21