Breaking news! A famous billionaire has bought a yet undisclosed NBA team. He plans to invest great effort and money to make the team the best. In fact, he is very clear about the expected result: first place.
As his advisor, you must determine whether it is possible for your team to finish first in its division.
More formally, the NBA regular season is organized as follows: all teams play some games, in each game one team wins and one team loses. Teams are grouped into divisions, some games are between teams in the same division, and some are between teams in different divisions.
Given the current score and the total number of remaining games for each team in your division, and the number of remaining games between each pair of teams in your division, determine if it is possible for your team to have at least as many wins as any other team in your division.
The first line contains (2 \le N \le 20) — the number of teams in your division. They are numbered from to , your team is number .
The second line contains integers w_1, w_2, \ldots, w_N, where w_i is the total number of games the -th team has won so far.
The third line contains integers r_1, r_2, \ldots, r_N, where r_i is the total number of remaining games for the -th team (including games inside the division).
The next lines contain integers each. The -th number in the -th line, a_{ij}, is the number of games remaining between teams and . It is always true that a_{ij} = a_{ji} and a_{ii} = 0. For all it holds that a_{i1} + a_{i2} + \ldots + a_{iN} \le r_i.
All numbers in input are non-negative and do not exceed .
Print **YES** (without quotes) if it is possible for team to have at least as many wins as any other team in its division, and **NO** (without quotes) otherwise.
Example 1