function Main(input) { const S = input.trim(); let rslt = true; 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 = 1; i < S.length - 1; i++) { if (!set.has(S[i])) rslt = false; } console.log(rslt ? 200 : 400); } Main(require("fs").readFileSync(0)+"");