function main (input) {
  const n = parseInt(input, 10);
  
  let total = n * 800,
      get = Math.floor(n / 15) * 200;
  
  console.log(total - get);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));