#include int main(){ int A,B,C; int n1, n2; int flg=0; scanf("%d", &A); scanf("%d", &B); scanf("%d", &C); if((C+B)%A==0){ n1 = (C+B)/A; flg = 2; } if(C%A==0 && C-B<=0){ n2 = C/A; flg ++; } switch(flg){ case 0: printf("%d\n",-1); break; case 1: printf("%d\n",n2); break; case 2: printf("%d\n",n1); break; case 3: if(n2>n1){ printf("%d\n",n1); printf("%d\n",n2); }else{ printf("%d\n",n2); printf("%d\n",n1); } break; default: printf("%d\n",-1); break; } return 0; }