const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () => (await iter.next()).value; const VerifyIp = (ip) => { let ipArr = ip.split('.') let flag = 0 if (ip === '127.0.0.1') { flag = 1 } else if (ipArr[0] === '10') { flag = 1 } else if (ipArr[0] === '172' && (Number(ipArr[1]) >= 16 && Number(ipArr[1]) <= 31)) { flag = 1 } else if (ipArr[0] === '192' && ipArr[1] === '168') { flag = 1 } return flag } void async function () { // Write your code here // 10.x.x.x // 172.16.x.x-172.31.x.x // 192.168.x.x // 127.0.0.1 let inputArr = [] while (line = await readline()) { inputArr.push(line) } console.log(VerifyIp(inputArr[0])) }()