A - Repdigit 解説 /

実行時間制限: 2 sec / メモリ制限: 1024 MiB

配点 : 100

問題文

3 桁の正整数 N が与えられます。 N を十進法で表したとき、すべての桁の数字が同じであるかどうかを判定してください。

制約

  • 100 \leq N \leq 999
  • 入力される値は整数

入力

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

N  

出力

N を十進法で表したとき、すべての桁の数字が同じであるならば Yes を、同じでないならば No1 行で出力せよ。


入力例 1

444

出力例 1

Yes

444 の各桁の数字は 4,4,4 で同じなので Yes を出力してください。


入力例 2

160

出力例 2

No

160 の各桁の数字は 1,6,0 で同じではないので、No を出力してください。


入力例 3

999

出力例 3

Yes

Score : 100 points

Problem Statement

You are given a 3-digit positive integer N. Determine whether all digits are the same when N is represented in decimal.

Constraints

  • 100 \leq N \leq 999
  • The input value is an integer.

Input

The input is given from Standard Input in the following format:

N  

Output

If all digits are the same when N is represented in decimal, output Yes in one line; otherwise, output No.


Sample Input 1

444

Sample Output 1

Yes

The digits of 444 are 4,4,4, which are the same, so output Yes.


Sample Input 2

160

Sample Output 2

No

The digits of 160 are 1,6,0, which are not the same, so output No.


Sample Input 3

999

Sample Output 3

Yes