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