The holiday season is near! Aron wants to get gifts for his friends in Zagreb, so in order to get them on time, he visited a famous toy store in London.
After picking out the gifts, he went to the register and discovered that there were already
Write a program that will, given the data on the people standing in line, output which person in line Aron is.
Input Specification
The first line of input contains the positive integer
Output Specification
You must output the required number from the task.
Sample Input 1
3
C
Z
P
Sample Output 1
4
Sample Input 2
6
C
C
P
C
Z
Z
Sample Output 2
5
Explanation for Sample Output 2
First in line is the group consisting of two people in red shirts. Second in line is an individual in the blue shirt, third in line is an individual in the red shirt, and fourth in line is a group in green shirts. This makes Aron fifth in line.
Sample Input 3
6
B
B
B
B
B
B
Sample Output 3
2
Comments