{"raw_statement":[{"iden":"problem statement","content":"We conducted a survey on newspaper subscriptions. More specifically, we asked each of the $N$ respondents the following two questions:\n\n*   Question $1$: Are you subscribing to Newspaper X?\n*   Question $2$: Are you subscribing to Newspaper Y?\n\nAs the result, $A$ respondents answered \"yes\" to Question $1$, and $B$ respondents answered \"yes\" to Question $2$.\nWhat are the maximum possible number and the minimum possible number of respondents subscribing to both newspapers X and Y?\nWrite a program to answer this question."},{"iden":"constraints","content":"*   $1 \\leq N \\leq 100$\n*   $0 \\leq A \\leq N$\n*   $0 \\leq B \\leq N$\n*   All values in input are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$ $A$ $B$"},{"iden":"sample input 1","content":"10 3 5"},{"iden":"sample output 1","content":"3 0\n\nIn this sample, out of the $10$ respondents, $3$ answered they are subscribing to Newspaper X, and $5$ answered they are subscribing to Newspaper Y.\nHere, the number of respondents subscribing to both newspapers is at most $3$ and at least $0$."},{"iden":"sample input 2","content":"10 7 5"},{"iden":"sample output 2","content":"5 2\n\nIn this sample, out of the $10$ respondents, $7$ answered they are subscribing to Newspaper X, and $5$ answered they are subscribing to Newspaper Y.\nHere, the number of respondents subscribing to both newspapers is at most $5$ and at least $2$."},{"iden":"sample input 3","content":"100 100 100"},{"iden":"sample output 3","content":"100 100"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}