#include <iostream>
#include <string>
using namespace std;
int main() {
string input;
cin >> input;
int count = 0;
for (char c : input) {
if (!isalpha(c)) {
count++;
}
}
cout << count << endl;
return 0;
}