In a room are several people, some of which always lie and all others always tell the truth. Their ages are pairwise distinct. Each person says one of the following phrases: "In this room, there is an equal number of truth-sayers older than me and of liars younger than me" or "In this room, there is an equal number of truth-sayers younger than me and of liars older than me" What is the maximum possible number of truth-sayers in the room? Find an example in which this maximum is achieved and prove a higher number is impossible.
IL-GILLIS 2022
Israel National Olympiad 2022.
Other problems
Real nonzero numbers satisfy the equations Express using and .
Let be a circle of diameter . Four lines were drawn dividing into "strips", each of width . The strips were colored orange and purple alternatingly, as depicted. Which area is larger: the orange or the purple?
Attachments:

Find all triples of integers for which the equation has three distinct integer roots which are pairwise coprime.
A paper convex quadrilateral will be called folding if there are points on the interiors of segments respectively so that if we fold in the triangles , they will exactly cover the quadrilateral . In other words, if the folded triangles will cover the quadrilateral but won't cover each other. Prove that if quadrilateral is folding, then or is a trapezoid.
Attachments:

Let be non-negative real numbers. Prove that:
Gandalf (the wizard) and Bilbo (the assistant) are presenting a magic trick to Nitzan (the audience). While Gandalf leaves the room, Nitzan chooses a number and shows it to Bilbo. Now bilbo writes on the board a long row of digits, each of which is or . After this Nitzan can, if he wishes, switch the order of two consecutive digits in the row, but only once. Then Gandalf returns to the room, looks at the row, and guesses the number .
Can Bilbo and Gandalf come up with a strategy that allows Gandalf to guess correctly no matter how Nitzan acts, ifa) ?b) ?c) ?