s = input().strip() ok = True if len(s) == 0 or len(s) > 32: ok = False for ch in s: if not (ch.isalpha() or ch.isdigit() or ch == "_" or ch == "-"): ok = False if s and (s[0] in "_-" or s[-1] in "_-"): ok = False print(200 if ok else 400)