fun main(){println((1..99).joinToString("")[readLine()!!.toInt()-1])}