#include using namespace std; #define int long long signed main(){ int N,M; cin>>N>>M; vector A={}; while(M != 0){ A.push_back(M%N); M /= N; } for(int i=A.size()-1;i>=0;i--) cout<