table = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz-_" def check(s): if 1 <= len(s) <= 32: for c in s: if not c in table: return 400 if s[0] in "-_" or s[-1] in "-_": return 400 return 200 return 400 S = input() print(check(S))