Task 1. An apple, a pear, an orange, and a banana were placed in four boxes (one fruit per box). Inscriptions were made on the boxes:

On the 1st: Here lies an orange.

On the 2nd: Here lies a pear.

On the 3rd: If in the first box lies a banana, then here lies an apple or a pear.

On the 4th: Here lies an apple.

It is known that none of the inscriptions correspond to reality.

Determine which fruit lies in which box. In your answer, write down sequentially, without spaces, the numbers of the boxes in which the apple, pear, orange, and banana lie, respectively (you should get a 4-digit number).
Answer: 2431

Solution: The inscription on the 3rd box is incorrect, so in the first box lies a banana, and in the third - not an apple and not a pear, therefore, an orange. From the inscription on the 4th box, it follows that there is no apple there, so since the banana is in the 1st, and the orange is in the 2nd, then in the 4th lies a pear. The apple remains, which lies in the second box.