#include using namespace std; string str; int c2; int main() { cin >> str; for (int i = 0; i < str.size(); i++) if (str[i] == '.')c2++; printf("%d \n%d", str.size(), c2); return 0; }