#include<stdio.h>
#include<conio.h>
#include<ctype.h>
void main()
{
FILE *fp;
int s=1;
char c,fn[10];
clrscr();
scanf("%s",fn);
fp=fopen(fn,"r");
if(fp==NULL) printf("FILE NOT FOUND");
while(1)
{
c=getc(fp);
if(c==EOF) break;
if(isspace(c)||ispunct(c))
{
fseek(fp,1L,1);
if (isalpha(c)) s++;
}
}
printf("\n%d",s);
fclose(fp);
getch();
}