atcoder#ABC291A. [ABC291A] camel Case
[ABC291A] camel Case
Score : points
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.
aBc
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.
xxxxxxXxxx
7
An uppercase letter X
occurs as the -th character of xxxxxxXxxx
, so should be printed.
Zz
1