import java.io.BufferedReader

fun main(args: Array<String>) {
    /** comment in when you submit **/
    System.`in`.bufferedReader().use { println(getOutputString(it)) }

    /** delete below after your test **/
    // executeTest()
}

private fun getOutputString(reader: BufferedReader): String {
    val num = reader.readLine().toInt()

    val x = num * 800
    val y = (num / 15) * 200

    return (x - y).toString()
}