import re
input()
print(['Yes', 'No'][re.fullmatch(r'(wa|w\?|\?a|wo|\?o|n|\?)+', input()) is None])