line = input() alpha, space, digit, other = 0, 0, 0, 0 for ch in line: if ch.isalpha(): alpha += 1 elif ch == ' ': space += 1 elif ch.isdigit(): digit += 1 else: other += 1 print(alpha) print(space) print(digit) print(other)