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