#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(v) v.begin(),v.end()
typedef long long ll;
 
#include<bits/stdc++.h>
using namespace std;
 
int main(){
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  
  ll a,b,c;
  cin>>a>>b>>c;
  
  vector<ll> A;
  for(ll i=1;i<=200000;i++){
    ll now=i*a;
    if(now>b) now-=b;
    if(now==c) A.push_back(i);
  }
  int d=A.size();
  if(d==0) cout<<-1<<'\n';
  else{
    rep(i,d) cout<<A[i]<<'\n';
  }
  
  return 0;
}