import re S=input() ok=1<=len(S)<=32 and re.fullmatch(r'[A-Za-z0-9_-]+',S) and S[0] not in '_-' and S[-1] not in '_-' print(200 if ok else 400)