EndAs GPA
题号:NC206677
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

At the end of term, Makise Von got a poor grade.

Meanwhile, EndA started to show his magic.

Now Makise Von wonders if EndA's GPA is really 4.0, and he has almost made it.

There are n exams, and EndA's score of the i-th exam is ai .

Beside, it's known that the i-th exam's proportion of the GPA is pi% .

So let EndA's GPA be ans , then


Help Makise Von judge that if EndA's GPA is 4.0.

输入描述:

The first line of the input contains a single interger number n (1 <= n <= 20).

The second line of the input contains n interger numbers a1, a2, ..., an (0 <= ai <= 10^2), which are separated by spaces.

The third line of the input contains n interger numbers p1, p2, ..., pn (0 <= pi <= 10^2), which are separated by spaces.

It is guaranteed that , and the absolute error of the answer should be less than 10^(-2).

输出描述:

If EndA's GPA is 4.0 print Yes, else print No (without quotes).
示例1

输入

复制
2
49 71
91 9

输出

复制
No
示例2

输入

复制
3
100 100 100
28 25 47

输出

复制
Yes