s = input() assert 3 <= len(s) <= 2 * 10 ** 5 ls = [chr(i+65) for i in range(26)] for c in s: assert c in ls