//g++ 1.cpp -std=c++17 -O2 -I . #include using namespace std; using ll = long long; using ld = long double; using vi = vector; using vvi = vector; using vll = vector; using vvll = vector; using vld = vector; using vvld = vector; using vst = vector; using vvst = vector; #define fi first #define se second #define pb push_back #define eb emplace_back #define pq_big(T) priority_queue,less> #define pq_small(T) priority_queue,greater> #define all(a) a.begin(),a.end() #define rep(i,start,end) for(ll i=start;i<(ll)(end);i++) #define per(i,start,end) for(ll i=start;i>=(ll)(end);i--) #define uniq(a) sort(all(a));a.erase(unique(all(a)),a.end()) bool ok(ll n,ll a,ll b,ll c){ ll x=n*a; x-=b; if(x<=0)x=n*a; return (x==c); } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll a,b,c;cin>>a>>b>>c; vll ans; rep(i,1,1e6){ if(ok(i,a,b,c)){ ans.emplace_back(i); } } if(ans.size()==0)ans.emplace_back(-1); for(ll v:ans)cout<