camel Case

AtCoder
IDabc291_a
Time2000ms
Memory256MB
Difficulty
You are given a string $S$ consisting of uppercase and lowercase English letters. Here, exactly one character of $S$ is uppercase, and the others are all lowercase. Find the integer $x$ such that the $x$\-th character of $S$ is uppercase. Here, the initial character of $S$ is considered the $1$\-st one. ## Constraints * $S$ is a string of length between $2$ and $100$, inclusive, consisting of uppercase and lowercase English letters. * $S$ has exactly one uppercase letter. ## Input The input is given from Standard Input in the following format: $S$ [samples]
Samples
Input #1
aBc
Output #1
2

The $1$\-st character of `aBc` is `a`, the $2$\-nd is `B`, and the $3$\-rd is `c`; the $2$\-nd character is uppercase.  
Thus, $2$ should be printed.
Input #2
xxxxxxXxxx
Output #2
7

An uppercase letter `X` occurs as the $7$\-th character of $S=$`xxxxxxXxxx`, so $7$ should be printed.
Input #3
Zz
Output #3
1
API Response (JSON)
{
  "problem": {
    "name": "camel Case",
    "description": {
      "content": "You are given a string $S$ consisting of uppercase and lowercase English letters.   Here, exactly one character of $S$ is uppercase, and the others are all lowercase.   Find the integer $x$ such that ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc291_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $S$ consisting of uppercase and lowercase English letters.  \nHere, exactly one character of $S$ is uppercase, and the others are all lowercase.  \nFind the integer $x$ such that ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments