'use strict'

const main = (INPUT) => {
  const N = Number(INPUT.split('\n')[0])
  let ans = N * 800
  ans -= Math.floor(N / 15) * 200
  console.log(ans)
}

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