#include <bits/stdc++.h>   using namespace std;   int main() {     ios::sync_with_stdio(false);     cin.tie(0);     int n, m, count = 0;     cin >> n >> m;     int x = min(n, m);     n = n - x;     m = m - x;     int rest = (n / 2) + (m / 2);     cout << x <<     << rest << endl;     return 0;   }   