B - uNrEaDaBlE sTrInG Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点 : 200

問題文

先頭から奇数番目の文字が全て英小文字であり、かつ、先頭から偶数番目の文字が全て英大文字であるような文字列を 読みにくい文字列 と呼びます。

文字列 S が読みにくい文字列かどうか判定してください。

制約

  • S は英大文字及び英小文字のみからなる
  • S の長さは 1 以上 1000 以下

入力

入力は以下の形式で標準入力から与えられる。

S

出力

S が読みにくい文字列なら Yes、読みにくい文字列でないなら No を出力せよ。


入力例 1

dIfFiCuLt

出力例 1

Yes

先頭から奇数番目の文字が全て英小文字であり、かつ、先頭から偶数番目の文字が全て英大文字であるので、読みにくい文字列です。


入力例 2

eASY

出力例 2

No

先頭から 3 番目の文字が英小文字ではないので、読みにくい文字列ではありません。


入力例 3

a

出力例 3

Yes

Score : 200 points

Problem Statement

We call a string hard-to-read when its odd-positioned (1-st, 3-rd, 5-th, ... from the beginning) characters are all lowercase English letters and its even-positioned characters (2-nd, 4-th, 6-th, ... from the beginning) are all uppercase English letters.

Determine whether a string S is hard-to-read.

Constraints

  • S consists of uppercase and lowercase English letters.
  • The length of S is between 1 and 1000 (inclusive).

Input

Input is given from Standard Input in the following format:

S

Output

If S is hard-to-read, print Yes; otherwise, print No.


Sample Input 1

dIfFiCuLt

Sample Output 1

Yes

The odd-positioned characters are all lowercase and the even-positioned characters are all uppercase, so it is hard-to-read.


Sample Input 2

eASY

Sample Output 2

No

The 3-rd character is not lowercase, so it is not hard-to-read.


Sample Input 3

a

Sample Output 3

Yes