function Main(input) { const S = input.trim(); let rslt = true; if (S.length > 32) rslt = false; const set = new Set(["_", "-"]); if (set.has(S.at(0)) || set.has(S.at(-1))) rslt = false; const OK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for (const i of OK) set.add(i); for (let i = 0; i < S.length; i++) { if (!set.has(S[i])) rslt = false; } console.log(rslt ? 200 : 400); } Main(require("fs").readFileSync(0)+"");