#include<iostream> using namespace std; #include<algorithm> int main() { int a,b,c,x,y; cin>>a>>b>>c; x=min(b,c); if(b+c<=a) y=0; else{y=b+c-a;} cout<<x<<" "<<y; }