// Arup Guha
// 7/15/2015
// Written in SI@UCF Java GUI class
// Test that uses a Hash Set.

import java.util.*;

public class TestHashSet {

	public static void main(String[] args) {

        // Read them all in...
		Scanner stdin = new Scanner(System.in);
		HashSet<String> set = new HashSet<String>();
		while (stdin.hasNext())
			set.add(stdin.next());

        // Print out # of unique words and each unique word.
		System.out.println("There are "+set.size()+" unique strings in the document.");
		for (String s: set)
            System.out.println(s);
	}
}
