2386 Python while True: S = input() if S == '#': break alpha = S[0] print(f"{alpha} {S[1:].lower().count(alpha)}")