ductoannl2012
-
Rating
1
Bài đã giải
505
Tổng điểm
-
Hạng Rating
45176
Hạng điểm
0
Đóng góp
include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
string s; cin >> s;
for (int i = 0; i < s.size(); i ++)
{
if (i % 2 == 0 and 'A' <= s[i] and s[i] <= 'Z')
{
cout << "No";
return 0;
}
else if (i % 2 == 1 and 'a' <= s[i] and s[i] <= 'z')
{
cout << "No";
return 0;
}
}
cout << "Yes";
return 0;
}