02c

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
241 B
2
Indexable
Never
#include <iostream>
#include <cmath>
using namespace std;

int main() {
    freopen("a.in", "r", stdin);
    freopen("a.out", "w", stdout);
	double k, n; cin >> k >> n;
	cout << ceil(n / k) << " " << n - ((ceil(n / k) - 1) * k);
	return 0;
}