process.stdin.resume()
process.stdin.setEncoding('utf8')
console.log('How old are you ? ')
process.stdin.on('data', (text) => {
num = parseInt(text);
let year = 2018 - num;
if (num < 99 && num > 0) {
console.log('You were born in ' + year)
} else {
console.log('WHY U ALWAYS LYIN ?! Seriously, how old are you ?')
return process.stdin.on;
}
process.exit()
})