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