public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		StringBuilder out = new StringBuilder();
		map = new HashMap<String, Integer>();
		list = new ArrayList<String>();
		pos = 0;
		d: do {
			line = br.readLine();
			if (line == null)
				break d;
			returnWord(line);
		} while (line != null);
		Collections.sort(list);
		for (int i = 0; i < list.size(); i++)
			if (list.get(i).length() > 0)
				out.append(list.get(i)).append("\n");
		System.out.print(out);
	}