#include using namespace std; typedef long long ll; int main() { ll L,R,C; cin>>L>>R>>C; for(int i=L;i1000) { cout<<1000-(i-1)*C<