#include<iostream> using namespace std; int main() { int n,m,k,a,b,x,y; cin>>n>>m>>k; a=k-m; x=k-a; b=k-6; cout<<x<<' '<<b; return 0; }