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