#abc291a. [abc291_a]camel Case
[abc291_a]camel Case
Problem Statement
You are given a string consisting of uppercase and lowercase English letters.
Here, exactly one character of is uppercase, and the others are all lowercase.
Find the integer such that the -th character of is uppercase.
Here, the initial character of is considered the -st one.
Constraints
- is a string of length between and , inclusive, consisting of uppercase and lowercase English letters.
- has exactly one uppercase letter.
Input
The input is given from Standard Input in the following format:
Output
Print the integer such that the -th character of is uppercase.
Sample Input 1
aBc
Sample Output 1
2
The -st character of aBc
is a
, the -nd is B
, and the -rd is c
; the -nd character is uppercase.
Thus, should be printed.
Sample Input 2
xxxxxxXxxx
Sample Output 2
7
An uppercase letter X
occurs as the -th character of xxxxxxXxxx
, so should be printed.
Sample Input 3
Zz
Sample Output 3
1