s = input() if 1 <= len(s) <= 32: pass else: print(400) exit() if s[0] == "_" or s[0] == "-" or s[-1] == "_" or s[-1] == "-": print(400) exit() a = "abcdefghijklmnopqrstuvwxyz" b = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" c = "0123456789-_" d = a + b + c for char in s: if char not in d: print(400) exit() print(200)