import std.stdio, std.string, std.conv;
import std.algorithm, std.array;
auto solve(string s_) {
    auto NAB = s_.split.map!(to!long)();
    immutable N=NAB[0], A=NAB[1], B=NAB[2];
    return [min(A,B),max(0,A+B-N)].map!(to!string).join(" ");
}
void main(){ for(string s; (s=readln.chomp()).length;) writeln(solve(s)); }