Hide

Problem A
Turn It Up!

Languages da en

Your volume control is at a comfortable $7$ – not too high, not too low. Your friends entirely disagree, and frequently request you turn it up or turn it down, often in a somewhat inappropriate tone of voice.

Ever aiming to please, you try to accomodate their requests and increase or decrease the volume by one step accordingly. There are $11$ steps on your volume control: $0$, $1$, $2$, and so on up to $10$.

When the volume is set to $0$, you can’t turn it further down and can ignore any misguided request to that effect. Similarly, you can’t turn it up to more than $10$.

Where is your volume control after $n$ requests?

Input

A single integer $n$ on the first line, the number of requests.

The following $n$ lines contain either “Skru op!” (Danish for “Turn it up!”) or “Skru ned!” (Danish for “Turn it down!”.)

Output

Write a single integer: The position of your volume control after all $n$ requests.

Points

There are three test groups.

Group

Points

Constraints

1

25

$n=1$

2

25

$1\leq n\leq 3$

3

50

$1\leq n\leq 100$

Sample Input 1 Sample Output 1
3
Skru op!
Skru op!
Skru ned!
8
Sample Input 2 Sample Output 2
5
Skru op!
Skru op!
Skru op!
Skru op!
Skru ned!
9