#import <Foundation/Foundation.h>

NSString* input(void){
    NSData *stdinData = [[NSFileHandle fileHandleWithStandardInput] availableData];
    return [[NSString alloc] initWithData:stdinData encoding:NSUTF8StringEncoding];
}
void output(NSString *s){
    NSFileHandle *fileHandle = [NSFileHandle fileHandleWithStandardOutput];
    [fileHandle writeData:[s dataUsingEncoding:NSUTF8StringEncoding]];
    [fileHandle writeData:[@"\n" dataUsingEncoding:NSUTF8StringEncoding]];
    [fileHandle closeFile];
}

int main(int argc, const char * argv[]) {
    NSArray *NAB = [input() componentsSeparatedByString:@" "];
    NSInteger N = [NAB[0] intValue];
    NSInteger A = [NAB[1] intValue];
    NSInteger B = [NAB[2] intValue];
    NSString *answer = [NSString stringWithFormat:@"%ld %ld", MIN(A, B), MAX(0, A + B - N)];
    output(answer);
    return 0;
}
