fun main() { val (a,b) = readLine()!!.split(' ').map { it.toInt() } println(3-(23..25).intersect(a..b).size) }