class Ideone
{
	public static void main (String[] args)
	{
		long blanks, tabs, newlines = 0L;
		int c;
		try {
			while ((c = System.in.read()) != -1) {
				if (c == ' ') {
					blanks++;
				} else if (c == '\t') {
					tabs++;
				} else if (c == '\n') {
					newlines++;
				}
			}
			System.out.printf("Blanks: %d, tabs: %d, newlines: %d.\n",
				blanks, tabs, newlines);
		} catch (java.io.IOException ex) {
			System.err.printf("IOException: %s\n", ex.getMessage());
		}
	}
}