# Help me in solving LB15 problem

### My issue

t = int(input())
for i in range(t):
A, B, X, Y = map(int,input().split())

``````#Time taken for Chef to get to the ground floor = A / X minutes
#Time taken for Chefina to get to the ground floor = B / Y minutes
if A/X > B/Y:
print('Chefina')
elif A/X < B/Y:
print('Chef')
else:
print('Both')
``````

1
2 5 5 3 FACING ERROR IN PLS HELP

### My code

``````# Solution as follows

t = int(input())
for i in range(t):
A, B, X, Y = map(int,input().split())

#Time taken for Chef to get to the ground floor = A / X minutes
#Time taken for Chefina to get to the ground floor = B / Y minutes
if A/X < B/Y:
print('Chefina')
elif A/X > B/Y:
print('Chef')
else:
print('Both')
``````

Learning course: Logic Building in Python
Problem Link: CodeChef: Practical coding for everyone

``````if A/X < B/Y:
print('Chef')
elif A/X > B/Y:
print('Chefina')
else:
print('Both')

logic : time = distance/speed
Determine who will reach the ground floor first , so find the who take less time.

I'm willing to engage in discussions and open to considering any errors or flaws in my reasoning.``````