n=int(input()) s=input() cnt=1 Mod=998244353 for i in range(n): if s[i]=='?': t=set() u=0 for j in [-2,-1,1,2]: if i+j>=0 and j<0: if s[i+j]=='?': u+=1 else: t.add(s[i+j]) elif j>0 and i+j