stdin = gets.chomp().split(" ").map {|n| n.to_i}
allnum = stdin[0]
qa = stdin[1]
qb = stdin[2]

maxnum = qa>=qb ? qb : qa

minnum = (qa+qb)-allnum
minnum = minnum>=0 ? minnum : 0
    


print(maxnum.to_s+" "+minnum.to_s)