S = input() Ev = S[::2] Sh = S.replace(' ', '') print('Yes' if Ev == Sh else 'No')