s = input() if len(s) > 32 or len(s) == 0: print("400") elif not all(c.isalnum() or c in "_-" for c in s): print("400") elif s[0] in "_-" or s[-1] in "_-": print("400") else: print("200")