#include <stdio.h>

int main(){
	int space;
	int tab;
	int end;
	
	int c;
	while((c = getchar()) != EOF){
		if(c == ' ')  ++space;
		if(c == '\t') ++tab;
		if(c == '\n') ++end;
	}
	
	printf("space = %d\n", space);
	printf("tabs = %d\n", tab);
	printf("ends = %d\n", end);
    
	return 0;
}
