# PROBLEM LINK:

* Author:* Riddhish Lichade

*Riddhish Lichade*

**Tester:***Riddhish Lichade*

**Editorialist:**# DIFFICULTY:

CAKEWALK

# PREREQUISITES:

None

# PROBLEM:

In this new year, Meena is ready to begin college. He got admitted into Computer Engineering and wants to buy a new laptop. The maximum amount that he can spend on the laptop is Rupees N. If there are no laptops below this price, then Meena will continue using his old laptop.

In a local shop, there are three models available whose prices are A,B,andC rupees.

Your task is to find if Meena can buy a new laptop.

# QUICK EXPLANATION:

We are given rates of 3 laptops and Meena’s budget. We have to find if Meena can buy any of them with his current budget.

# EXPLANATION:

We have to find the minimum cost of the laptops available. Given the rates of 3 laptops compare the minimum one with the maximum amount that Meena can spend. If it is less than or equal to his budget then print “YES” else print “NO”.

# SOLUTIONS:

## Setter's Solution

```
from sys import stdin
for _ in range(int(stdin.readline())):
n,a,b,c=map(int, stdin.readline().strip().split())
if(min(a,b,c)<=n):
print("YES")
else:
print("NO")
```