61. Counter (100 points)

Time Limit: 1 seconds

Memory Limit: 1024 MB

Rating: 800

Problem Statement

Given a string $S$, count the number of A's present in the string. This includes both the uppercase 'A' and the lowercase 'a'. For example: 'hello my name is Alligator' would have 1 'A' and 2 'a's present, making a total of 3.

Input

The first line has string $S$, the length of which does not exceed $10^5$.

Output

Output the sum of the number of characters "a" and the number of characters "A" present in $S$.

Sample Cases
Sample Input 1:
hello my name is Alligator

Sample Output 1:
3


Sample Input 2:
aaaaAAaaAaaaa!! i died lmao

Sample Output 2:
14
Explanation

Not available for this problem.

Sources

IanOJ Contest #2 (Div. 4) > Problem A (Contributed by bronze@HungJan@)

Submit | Back