#include using namespace std; int main() { int A, B, C; cin >> A >> B >> C; int ma = 1e5; vector ans; for( long long x = 1; x < 3 * ma + 1; x++ ) { long long y = x * A - B; if( y <= 0 ) y = x * A; if( y == C ) ans.push_back( x ); } if( ans.size() == 0 ) cout << -1 << endl; else { for( int e : ans ) cout << e << endl; } }