n = input() m = n[1:100:2] l = n[0:100:2] q = l.replace(" ","") p = m.lstrip() if not p and len(l) == len(q): print('Yes') else: print('No')