#include<bits/stdc++.h>

using namespace std;
#define ll long long
#define ull unsigned long long
#define i128 __int128
#define mp make_pair
#define ld long double
typedef pair<int, int> pii;
typedef priority_queue<int, vector<int>, greater<int> > small_heap;
typedef priority_queue<int> big_heap;
const int N = 1e6 + 100;
int T;

int main() {
    int a, b;
    cin >> a >> b;
    cout << (a + b) / 2 << " " << a - (a + b) / 2 << endl;
    return 0;
}
#include <iostream>
using namespace std;

int A,B;
int main(){
	cin>>A>>B;
	
	cout<<2*A+100-B;
	
	return 0;
} 