import java.util.Scanner

object Main {
  def main(args:Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n = sc.nextInt()
    val x = 800 * n
    val y = n / 15 * 200

    println(x - y)
  }
}