s = input().strip() recv = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-" result = 1 <= len(s) <= 32 result = result and all(c in recv for c in s) result = result and s[0] not in "_-" and s[-1] not in "_-" print(200 if result else 400)