s = input() if len(s) < 1 or len(s) > 32: print(400) else: if s[0] == "_" or s[0] == "-" or s[-1] == "_" or s[-1] == "-": print(400) else: ok = True for c in s: if not c.isalnum() and c != "_" and c != "-": ok = False if ok: print(200) else: print(400)