#include "bits/stdc++.h" #define REP(i, n) for(int i = 0; i < int(n); i++) #define FOR(i,n,m) for(int i = int(n); i < int(m); i++) using namespace std; typedef long long ll; const int MOD = 1e9 + 7; const int INF = 1e9 + 6; const ll LLINF = 1e18 + 1; int main() { int i = 0; char c; while ((c = getchar()) != '\n') { if (i % 2 == 0 && c == ' ') { puts("No"); return 0; } if (i % 2 == 1 && c != ' '){ puts("No"); return 0; } i++; } puts("Yes"); return 0; }