import re s=input() print(200 if all([x in "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-" for x in s]) and 1<=len(s)<=32 and s[0] not in "-_" and s[-1] not in "-_" else 400)