fun main(args: Array<String>) {
    val (n, a, b) = readLine()!!.split(" ").map { it.toInt() }

    var maximum = if (a>=b) b else a
    var minimum = if (n - a - b <=0) -1 * (n - a - b) else 0

    print("${maximum} ${minimum}")
}