#!/usr/bin/env node const fs=require("fs"); function print(/*arguments*/){ //console.log.apply(console,arguments); process.stdout.write.apply(process.stdout,arguments); } function pad(s,w,c){ s=s+""; if(s.length>=Math.abs(w))return s; if(w<0)return s+Array(-w-s.length+1).join(c?c:" "); else return Array(w-s.length+1).join(c?c:" ")+s; } function readopmap(fname){ let table=String(fs.readFileSync(fname)).split("\n"); let i; for(i=0;i