import re S = input().strip() # Check length if not (1 <= len(S) <= 32): print(400) # Check first/last character elif S[0] in "_-" or S[-1] in "_-": print(400) # Check allowed characters elif not re.fullmatch(r"[A-Za-z0-9_-]+", S): print(400) # Valid else: print(200)