Python or C++ Program to Find LHS = RHS

I’ve been Given a Question to find If 23=5 LHS ..i.e 2+3 = 5 … Since it’s true it should return true else Return -1

Note that the Input is single input 23=5 in a single sentence.

I have no idea how to differentiate the left side of = and right side of the =.