Input format
The first line contains two space-separated integers s and n (1<s<104,1<n<103).
Then n lines follow the i-th line contains space-separated integers x, and y;(1<x< 104,0
sy,<104) – the i-th Black Order's strength and the bonus for defeating it.
Output format
yon a single line print "YES" (without the quotes), if Tony Stark can defeat the Black Orders
and print "NO" (without the quotes), if he can't.
Sample testcases
Input 1
Output 1
YES
1010 10
67 89
Output 2
Input 2
Answers
Answered by
0
Answer:
I didn't understand what you are asked
Similar questions
French,
4 months ago
Math,
4 months ago
Math,
8 months ago
India Languages,
8 months ago
English,
11 months ago
Computer Science,
11 months ago