#include <iostream>
#include <string>
#include <algorithm>
#include <iostream>
using namespace std;

int main() {
	string s = "Onetwothree";
	int lc = count_if(s.begin(), s.end(), islower);
	int uc = count_if(s.begin(), s.end(), isupper);
	cout << uc << " " << lc << endl;
	return 0;
}