#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int a, b, c; cin >> a >> b >> c; vector ans; if ((b + c) % a == 0) { ans.push_back((b + c) / a); } if (c % a == 0) { int x = c / a; if (a * x - b <= 0) { ans.push_back(x); } } sort(ans.begin(), ans.end()); if (ans.size()) { for (auto x : ans) { cout << x << endl; } } else { cout << -1 << endl; } }