/**
 * Created by yusaku on 2017/02/27.
 */

fun main(args: Array<String>) {
    val line = readLine()
    if (line != null) {
        val N = line.toInt()
        print(N * 800 - (N / 15) * 200)
    }
}