n, a, b = gets.chomp.split(" ").map(&:to_i)
num = []
num << a
num << b
 
xnum = 0
nnum = 0
 
if num[0] == num[1]
  xnum = num[0]
  nnum = num[0]
elsif num.inject(:+) <= n
  xnum = num.min
  nnum = 0
else
  xnum = num.min
  nnum = (num[0] - num[1]).abs
end
puts "#{xnum} #{nnum}"