"use strict";
const Main = (input) => {
  let xs = Number(input);
  let pay = xs * 800;
  let back = Math.floor(xs / 15);
  let ans = pay - (back * 200);
  console.log(ans);

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