#include<bits/stdc++.h> using namespace std; int main() { long long n,k; cin>>n>>k; if(n>=k) cout<<n+n/k; else if(n<k) cout<<n; return 0; }
rt,不知道哪错了