"use strict";

function main(input){
  const n = input.trim();
  const x = n * 800;
  const y = Math.floor(n / 15) * 200;
  console.log(x - y);
}

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