#include #include #include #include #include #define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define FOR(i,m,n) for(int i=(m);i<(n);++i) #define REP(i,n) FOR(i,0,n) #define ALL(v) (v).begin(),(v).end() const int INF = 0x3f3f3f3f; const long long LINF = 0x3f3f3f3f3f3f3f3fLL; const double EPS = 1e-8; const int MOD = 1000000007; // 998244353; const int dy[] = {1, 0, -1, 0}, dx[] = {0, -1, 0, 1}; struct IoSetup { IoSetup() { cin.tie(nullptr); ios_base::sync_with_stdio(false); cout << fixed << setprecision(20); cerr << fixed << setprecision(10); } } iosetup; /*-------------------------------------------------*/ int main() { string s; cin >> s; if (s.length() % 2 == 0) { cout << "No\n"; return 0; } for (int i = 0; i < s.length(); i += 2) { if (s[i] == ' ') { cout << "No\n"; return 0; } } for (int i = 1; i < s.length(); i += 2) { if (s[i] != ' ') { cout << "No\n"; return 0; } } cout << "Yes\n"; return 0; }