If minimum candies of three bags are less than number of operations required then the task is not possible
m = min ( a , min ( b , c ) ) ; NEW_LINE if ( m < ( a + b + c ) // 4 ) : NEW_LINE INDENT return False ; NEW_LINE DEDENT return True ; NEW_LINE