package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	// a scanner splits its input by lines, or by words if you ask for it
	in := bufio.NewScanner(os.Stdin)
	in.Split(bufio.ScanWords)
	count := map[string]int{}
	total := 0
	for in.Scan() {
		count[in.Text()]++
		total++
	}
	if err := in.Err(); err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
	fmt.Println(total, "words,", len(count), "different")
	fmt.Println("the word files:", count["files"])
}
