Задание🌐 shown in EN
Fix `retry` so:
1. `ConnectionError` triggers up to 3 attempts.
2. `ValueError` propagates immediately (no retry).
The output must be exactly:
```
attempt 1
attempt 2
attempt 3
caught: still failing
attempt 1
caught: bad input
```