#include <bits/stdc++.h>   using namespace std;   int a, b, x, y;   int main() {     cin >> a >> b;     if (a > b) {       x = b;       y = (a - b) / 2;     } else {       x = a;       y = (b - a) / 2;     }     cout << x <<     << y;   }   