#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void fastIO()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
}
int main()
{
fastIO();
int h, a;
cin >> h >> a;
cout << h / a << endl;
if (h % a != 0)
cout << (h% a) + 1 << endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CnR5cGVkZWYgbG9uZyBsb25nIGxsOwoKdm9pZCBmYXN0SU8oKQp7CiAgICBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKGZhbHNlKTsKICAgIGNpbi50aWUobnVsbHB0cik7CiAgICBjb3V0LnRpZShudWxscHRyKTsKfQoKaW50IG1haW4oKQp7CgogICAgZmFzdElPKCk7CiAgICBpbnQgaCwgYTsKICAgIGNpbiA+PiBoID4+IGE7CiAgICBjb3V0IDw8IGggLyBhIDw8IGVuZGw7CgogICAgIGlmIChoICUgYSAhPSAwKQogICAgICAgIGNvdXQgPDwgKGglIGEpICsgMSA8PCBlbmRsOwoKICAgIHJldHVybiAwOwp9