const rl = require("readline").createInterface({ input: process.stdin }); let arr=[] rl.on("line",line=>{ arr.push(line) }) rl.on("close",()=>{ let str=arr[0] let n=Number(arr[1]) console.log(str.substring(0,n)) })