#include #include using namespace std; using namespace atcoder; using ll=long long; using ld=long double; ld pie=3.141592653589793; ll inf=144494; ll mod=998244353; int main(){ ll a,b,c; cin >> a >> b >> c; bool ok=false; vectorans; if (c+b>0) { if ((c+b)%a==0) { ans.push_back((c+b)/a); ok=true; } } if (c%a==0) { ans.push_back(c/a); ok=true; } if (!ok) { ans.push_back(-1); } sort(ans.begin(),ans.end()); for (ll i = 0; i < ans.size(); i++) { cout << ans[i] << endl; } }