#include iostream.h
#include conio.h
#include stdio.h

//smallchar=و تعدادحروف کوچکbigchar= وتعدادحروف بزرگforch=تعداد کلمات چهار حرفی//
 main()
 {
 int j=0,n=0,cont=0,smallchar=0,bigchar=0,k=1,a=0,forch=0;
  char str[1000];
  gets(str);
  while(str[j]!='\0')
  {
 if(str[j]=='.')
 cont++;

  if(str[j]==' ' && j>0)

  {
  n++;
  k=0;}
  if(str[j]=='.'&& str[j-1]==' ')
  n--;
  if(str[j]<='z' && str[j]>='a')
  smallchar++;
  if(str[j]<='Z' && str[j]>='A')
  { bigchar++;
   a++;
  }
   if(a>0 && k==4&& str[j]!='.')
   {
   forch++;
   k=0;
   a=0;
   for(int i=(j-3);i<=j;i++)
   cout<   cout<<'\n';
   }

  j++;
  k++;
  }

 if(str[j]=='\0' && str[j]!=' ')
 n++;

 

  cout<<"cont kalamat="

cout<  cout<<"\n"<<"cont jomleh="

cout<

  cout<<"\n"<<"smallchr="

cout<  cout<<"\n"<<"bigchar="

cout<  cout<<"\n"<<"forch="

cout<  return 0;
  }