"""1 文字以上 32 文字以下の文字列である。 英大文字・英小文字・アラビア数字・アンダースコア・ハイフン A~Z a~z 0~9 _ - 以外の文字を含まない。 先頭および末尾の文字がアンダースコア・ハイフン _ - ではない。""" import re def validate(traQ_id: str) -> bool: multi = re.fullmatch(r"[a-zA-Z0-9][a-zA-Z0-9_-]{0,30}[a-zA-Z0-9]", traQ_id) single = re.fullmatch(r"[a-zA-Z0-9]", traQ_id) return single is not None or multi is not None if __name__ == "__main__": code = 200 if validate(input()) else 400 print(code)