/*
Write a program to read in a string and to print the number of lowercase 
letters in the string.
*/

#include <iostream>
#include <string>
using namespace std;
int main()
{
        string s;
        int count, i;
        cout << "Enter a string :";
        cin >> s;
        count = 0;
        i = 0;
        while (i < s.size())
        {
                //if (s[i] >= 'a' && s[i] <= 'z')
	         if (islower(s[i]))
                        count++;
                i++;
        }
		cout << "There are " << count
				<< " lowercase letters in "
				<< s << endl;
        return 0;
}

