fun main(){ val n : Long = readLine()!!.toLong() println(if(n<4) n else (n-3)*5+3) }