a = input() l = len(a) if a[0:l:2].isalpha() and a[1:l:2].isdigit(): print("Yes") else: print("No")