#4554. camel Case

0
    ID: 4554 传统题 2000ms 1024MiB 尝试: 0 已通过: 0 难度: 1 上传者: 标签>AtCoderabc291AGESP 3级枚举(单层循环)字符串

camel Case

camel Case

题目描述

You are given a string SS consisting of uppercase and lowercase English letters.
Here, exactly one character of SS is uppercase, and the others are all lowercase.
Find the integer xx such that the xx-th character of SS is uppercase.
Here, the initial character of SS is considered the 11-st one.

输入格式

The input is given from Standard Input in the following format: SS

输出格式

Print the integer xx such that the xx-th character of SS is uppercase.

aBc
2
xxxxxxXxxx
7
Zz
1

提示

The 11-st character of aBcaBc is aa, the 22-nd is BB, and the 33-rd is cc; the 22-nd character is uppercase.
Thus, 22 should be printed.
An uppercase letter XX occurs as the 77-th character of S=S=xxxxxxXxxxxxxxxxXxxx, so 77 should be printed.

标签: AtCoder|abc291A

来源

AtCoder|abc291A