#include int main(void) { int A, B, C; scanf("%d %d %d", &A, &B, &C); for(int N = 1; N < 200000; N++) { if((N * A - B == C) || (N * A == C)) { printf("%d\n", N); } } return 0; }