'use strict'
const main = arg => {
	const input = arg.trim().split("\n");
	let N = Number(input[0].split(' ')[0])
	console.log(N * 800 - Math.floor(N / 15) * 200)
}   
main(require('fs').readFileSync('/dev/stdin', 'utf8'));