Help me in solving ACTEMP problem

My issue

how can i implement logic here

My code

# cook your dish here
t=int(input())
for i in range(t):
    l=list(map(int,input().split()))
    count=0
    for i in range(30,36):
        print("yes")
        count=count+1
        

Problem Link: Air Conditioner Temperature Practice Coding Problem - CodeChef

@sameershaik0_0
logic would be the maximum among A and C should be lesser than or equals to B .
if it does then yes else case it would be no.