#include <iostream>
signed main() {
setlocale(LC_ALL, "Rus");
int A, B, C;
std::cin >> A >> C >> B;
if ((B - (A + C)) % C == 0)
std::cout << "Да";
else
std::cout << "Нет";
return 0;
}
#include <iostream>
signed main() {
setlocale(LC_ALL, "Rus");
int A, B, C;
std::cin >> A >> C >> B;
if ((B - (A + C)) % C == 0)
std::cout << "Да";
else
std::cout << "Нет";
return 0;
}