#include<stdio.h>
#define IN 1
#define OUT 0
main()
{
int c, nl, nw, nc, state;
state = OUT;
nl = nw = nc = 0;
while((c=getchar()) != EOF){
++nc; //统计字符数
if(c == '\n')
++nl; //统计行数
if(c == ' ' || c == '\t' || c == '\n')
state = OUT;
else if(state == OUT){
state = IN;
++nw; //统计单词数
}
}
printf("%d %d %d\n",nl,nw,nc);
}
#define IN 1
#define OUT 0
main()
{
int c, nl, nw, nc, state;
state = OUT;
nl = nw = nc = 0;
while((c=getchar()) != EOF){
++nc; //统计字符数
if(c == '\n')
++nl; //统计行数
if(c == ' ' || c == '\t' || c == '\n')
state = OUT;
else if(state == OUT){
state = IN;
++nw; //统计单词数
}
}
printf("%d %d %d\n",nl,nw,nc);
}