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

half = n / 2

if a < b
  minn = b - a
elsif a > b
  minn = a - b
elsif a == b
  minn = (half - a )*(-2)
elsif ( a == b )&&( a == n )
  minn = a
end
if (half > a) or (half > b)
  minn = 0
end

if a < b
  max = a
else
  max = b
end

print"#{max} #{minn}"
