s=input();print(200if len(s)<33and s[0]>"."and s[-1]>"."and all(c.isalnum()or c in"_-"for c in s)else 400)