fun main() { println(readLine()!!.let{ if(it[0]=='-' || it.length < 3) 0 else it.substring(0..it.length-3) }) }