#include<iostream> using namespace std; int main(){ int x,y,k; cin>>x>>y>>k; cout<<y/k+x; return 0; }