human
Check if it is possible to make x and y zero at same time with given operation | Function to check if it is possible to make x and y can become 0 at same time.
Check the given conditions.
Driver Code.
Function Call"
How can the above be solved in Python?
assistant
#Here is code to check if it is possible to make x and y zero at same time with given operation and the other steps required.
 def canBeReduced ( x , y ) :
	maxi = max ( x , y )
	mini = min ( x , y )
	if ( ( ( x + y ) % 3 ) == 0 and maxi <= 2 * mini ) :
		print ( " YES " )
	else :
		print ( " NO " )
if __name__ == ' _ _ main _ _ ' :
	x = 6
	y = 9
	canBeReduced ( x , y )