#include<bits/stdc++.h> #include<iostream> using namespace std; int main() { int k,n,n2,k2; cin>>n>>k; n2=n/k+n; cout<<n2; return 0; }