n=int(input()) s=list(input()) for i in range(n-1): if s[i] == 'w' and s[i + 1] == '?': s[i+1] = 'a' if s[i+1] in 'oa' and s[i]=='?': s[i]='w' t=''.join(s) if len(t.replace('wa','').replace('wo','').replace('n','').replace('?','')): print('No') else: print('Yes')