s = input() l = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-" ans = 200 if 1 <= len(s) <= 32: if s[0] not in ["_", "-"] and s[-1] not in ["_", "-"]: for c in s: if c not in l: ans = 400 else: ans = 400 else: ans = 400 print(ans)