function Main(input) {
  var time = Date.now()
  console.log(time)
  input = input.trim()
  input = input.split("\n");
  console.log(input)
  var target = input[1];
  var add = target.charCodeAt();
  console.log(add)
while(time+add*10-48>Date.now()){//
}
console.log(Date.now())
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));