#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { fast_io(); int a, b, c; cin >> a >> b >> c; vector cand{c + b}; if (c <= b) { cand.push_back(c); } vector ans; for (int x : cand) { if (x % a == 0) { ans.push_back(x / a); } } sort(ans.begin(), ans.end()); if (ans.empty()) { cout << -1 << "\n"; } else { for (int x : ans) { cout << x << "\n"; } } }