A - Compromise Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MiB

配点 : 100

問題文

N 個の選択肢があります。

あなたは、これらの中から 1 つの選択肢を選びます。あなたが i 番目の選択肢を選んだときの嬉しさは X_i です。

どの選択肢を選んでも嬉しさが負になる場合は Yes を、そうでない場合は No を出力してください。

制約

  • 2 \leq N \leq 10
  • -100 \leq X_i \leq 100
  • 入力される値はすべて整数

入力

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

N
X_1 X_2 \ldots X_N

出力

問題文中の指示に従って YesNo のいずれかを出力せよ。


入力例 1

4
2 0 -1 2

出力例 1

No

選択肢 1, 2, 4 のいずれかを選んだとき、嬉しさは負になりません。


入力例 2

3
-5 -2 -1

出力例 2

Yes

入力例 3

4
0 -2 0 -1

出力例 3

No

Score : 100 points

Problem Statement

There are N choices.

You will choose one of these choices. If you choose the i-th choice, your happiness will be X_i.

If your happiness will be negative no matter which choice you choose, output Yes; otherwise, output No.

Constraints

  • 2 \leq N \leq 10
  • -100 \leq X_i \leq 100
  • All input values are integers.

Input

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

N
X_1 X_2 \ldots X_N

Output

Output Yes or No according to the instructions in the problem statement.


Sample Input 1

4
2 0 -1 2

Sample Output 1

No

If you choose choice 1, 2, or 4, the happiness will not be negative.


Sample Input 2

3
-5 -2 -1

Sample Output 2

Yes

Sample Input 3

4
0 -2 0 -1

Sample Output 3

No