No.3497 Sign up for traP
Problem Statement
In traP, the digital creation club of Institute of Science Tokyo, each member has a user ID called a traQ ID. A traQ ID must satisfy the following requirements.
- It is a string of at least 1 and at most 32 characters.
- It contains no characters other than uppercase English letters, lowercase English letters, Arabic digits, underscores, and hyphens
A~Z a~z 0~9 _ -. - Its first and last characters are not an underscore or a hyphen
_ -.
You are about to join traP and are trying to register a given string $S$ as your traQ ID.
Print 200 if it satisfies the above requirements, and 400 otherwise.
Constraints
- $1 \leq |S| \leq 100$
- The string $S$ consists of characters represented by ASCII codes 33 to 126. In particular, it does not contain half-width spaces.
Input
The input is given from standard input in the following format.
$S$
Output
Print the answer on one line, following the problem statement.
Sample
Sample 1
Input
zoi_dayo
Output
200
This is the user ID of the leader of traP at the time this problem was written. It satisfies the requirements.
Sample 2
Input
CPCTF{dummy}
Output
400
It contains the unusable character {, so it does not satisfy the requirements.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
Solalyth