#include<bits/stdc++.h>
#define ll int
#define ld long double
using namespace std;
int main()
{
    #ifndef ONLINE_JUDGE
        freopen ("input.txt" , "r" , stdin);
        // freopen ("OUTPUT.txt" , "w" , stdout);
    #endif
    ll tc=1;
    //cin>>tc;
    while(tc--)
    {
        ll n,w;
        cin>>n>>w;
        cout<<n/w<<endl;
    }
}
#include <bits/stdc++.h>
using namespace std;

int main()
{
    int x, y, a, b, temp1, temp2;

    cin >> a >> b;

    x = (a + b) / 2;
    y = a - x;

    cout << x << " " << y << "\n";

    return 0;
}