program countcharacters(input,output);
c0,c1,c2,c3,c4: integer; {counters}
begin writeln(clock); { linelimit(output, -1); }
c0 := 0; c1 := 0; c2 := 0; c3 := 0; c4 := 0;
begin write(' '); c0 := c0+1;
begin read(ch); write(ch);
if ch = ' ' then c1 := c1+1 else
if ch in ['a'..'z'] then c2 := c2+1 else
if ch in ['0'..'9'] then c3 := c3+1 else c4 := c4+1
writeln(c4,' special characters');