n, a, b = gets.chomp.split(" ").map(&:to_i)
num << a
num << b

xnum = 0
nnum = 0

if num.inject(:+) <= n
  xnum = num.min
  nnum = 0
else
  xnum = num.min
  nnum = (num[1] - num[2]).abs
end
puts "#{xnum} #{nnum}"