function Main (input) { var Y = +input console.log(2017 - Y); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));