s = list(input()) t = set(s[::2]) u = set(s[1::2]) print('YNeos'[' ' in t or u != {' '}::2])