import re print(200 if re.fullmatch("^[A-Za-z0-9][A-Za-z0-9_-]{0,30}[A-Za-z0-9]$|^[A-Za-z0-9]$", input()) != None else 400)