# Chatbot Context Window: Solution

*English translation by SOTA – AI Community of the Russian original. Organisers who would like this translation removed can email sota.ai.community@gmail.com.*

*Task 1 of the school stage of the All-Russian School Olympiad (VsOSh) 2025/26 in artificial intelligence (region group IV), grades 9–11. Answer and official solution.*

**Answer:** 148

**Solution.**

Let the document contain $T$ words. Then

$$500 + T + 0.15T + T \le 128000 \implies 500 + 2.15T \le 128000$$

$$T \le \frac{128000 - 500}{2.15} = \frac{127500}{2.15} = \frac{2\,550\,000}{43}.$$

With 400 words per page, the maximum number of pages is

$$\left\lfloor \frac{T}{400} \right\rfloor \le \left\lfloor \frac{1}{400} \cdot \frac{2\,550\,000}{43} \right\rfloor = \left\lfloor \frac{6\,375}{43} \right\rfloor = 148.$$
