#P8401. Golden Team Evaluation
Golden Team Evaluation
Golden Team Evaluation
Given a team, each player is evaluated based on the number of goals and fouls. The score for the ith player is calculated as:
\(score_i = 5\times a_i - 3\times b_i\)
A player is considered a golden player if their score is greater than \(40\). The team is regarded as a golden team if every player in the team is a golden player.
Your task is to determine whether a given team is a golden team.
inputFormat
The first line contains a single integer \(n\) representing the number of players. Each of the following \(n\) lines contains two space-separated integers \(a\) and \(b\) which denote the number of goals and fouls of a player respectively.
outputFormat
Output Yes
if all players are golden players (i.e., each player's score is greater than \(40\)); otherwise, output No
.
sample
3
10 2
9 1
7 2
No