aboutsummaryrefslogtreecommitdiff
path: root/CamelCase.cpp
blob: bbcef3a86b10bc7c94331320b4903826914647b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<bits/stdc++.h>

using namespace std;

int main() {
  string s;
  int count = 0;
  cin >> s;
  for(auto ch : s) {
    if(isupper(ch)) {
      count++;
    }
  }
  cout << count + 1 << '\n';
  return 0;
}