Задачі
Канарейки
include <bits/stdc++.h>
define ll long long int
define ld long double
using namespace std; int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
ll n, k;
cin>>n>>k;
if(n%k == 0){
cout<<n/k<<' '<<n - (k-1);
return 0;
}
cout<<n/k+1<<' '<<n - (k-1);
} //TECHNOBLADE NEVER DIES