#include #include #include using namespace std; int N; string S; bool dp[2<<17]; bool f(int idx,char c) { return S[idx]=='?'||S[idx]==c; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cin>>N>>S; dp[0]=true; for(int i=0;i