#include <iostream>
using namespace std;
int main(){
cin.sync_with_stdio(0);
int n,k;
while(cin>>n>>k){
cout<<n+(1-n)/(1-k)<<endl;
}
}
using namespace std;
int main(){
cin.sync_with_stdio(0);
int n,k;
while(cin>>n>>k){
cout<<n+(1-n)/(1-k)<<endl;
}
}
Comments
Post a Comment