using System;
class Program
{
	static void Main(string[] args)
	{
        string[] input = Console.ReadLine().Split(' ');
        int n = input[0];
        int x = input[1];
        int y = input[2];
        
        int max, min;
        if (n - x + y > 0) {
            min = n - x + y;
        } else { min = 0; }
        if (x > y){
            max = y;
        }else{
            max = x;
        }

		Console.WriteLine(max + " " + min);
	}
}