#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; ll modc = 1e9+7; int main(){ ll A, ans=0, base, N, C=0, base2=1; string B; cin >> A >> B; N = B.size(); for (int i=0; i