#include #include using namespace std; using lint=int64_t; int main() { int N; string S; cin >> N; cin >> S; lint ans=0; for(int i=0;i