#include <iostream> using namespace std; int main(int argc, char **argv) { string str; cin >> str; int A = 0, a = 0, number = 0; int len = str.length(); for (int i = 0; i < len; i++) { if (str[i] <= '9' && str[i] >= '0') { number++; } if (str[i] <= 'Z' && str[i] >= 'A') { A++; } if (str[i] <= 'z' && str[i] >= 'a') { a++; } } cout << A << endl; cout << a << endl; cout << number << endl; return 0; }