#include using namespace std; int main(){ int A,B,c; int N = 0; c=0; cin>>A>>B; N=A*N+B; while(N==0){ N=A*N+B; c++; if(N==0){ } } cout<