human
Reduce N to 0 or less by given X and Y operations | Function to check if N can be reduced to <= 0 or not.
Update N to N / 2 + 10 at most X times.
Update N to N - 10 Y times.
Driver Code"
Solution in Python:
assistant
#Here is code to reduce N to 0 or less by given X and Y operations and the other steps required.
 def NegEqu ( N , X , Y ) :
	while ( X and N > N // 2 + 10 ) :
		N = N // 2 + 10
		X -= 1
	while ( Y ) :
		N = N - 10
		Y -= 1
	if ( N <= 0 ) :
		return True
	return False
if __name__ == ' _ _ main _ _ ' :
	N = 100
	X = 3
	Y = 4
	if ( NegEqu ( N , X , Y ) ) :
		print ( " Yes " )
	else :
		print ( " No " )