'use strict'

const main = input => {
	const n = parseInt(input.trim(), 10)
	const x = 800 * n
	const y = 200 * Math.floor(n / 15)
	console.log(x - y)
}

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