function main(input) {
  input = input.trim();
  const ｎ = input.split("").map(Number);
  let a = n*800;
  let b = (n/15)*200;
  console.log(a-b);
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));