Solve boolean18