n,a,b=gets.chomp.split.map(&:to_i)
maxReader=[a,b].min
minReader = maxReader - (n - [a,b].max )
minReader = maxReader if minReader == 0 && minReader == n
minReader = 0 if minReader < 1 
puts "#{maxReader} #{minReader}"