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