文件目录

#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
    int x, y;
    cin >> x >> y;
    int a = (y - 2 * x) / 2;
    cout << x - a << " " << a;
    return 0;
}