const fs = require('fs');
const [A, B, C] = JSON.parse(fs.readFileSync('input'));
const getA = () => A;
const getB = callback => setTimeout(() => callback(B), 10);
const getC = () => Promise.resolve().then(() => C);
const getABC = () => new Promise(resolve => getB(b => resolve(b))).then(b => getC().then(c => [getA(), b, c]));
getABC().then(value => console.log(value));