import sys def solve(): s = sys.stdin.read().strip() if not s: print(400) return if len(s) < 1 or len(s) > 32: print(400) return if s[0] in "_-" or s[-1] in "_-": print(400) return allowed = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-" for char in s: if char not in allowed: print(400) return print(200) if __name__ == "__main__": solve()