I have a code. It works. But there is one problem. The search for the maximum item in the list is performed using the max function. How can I rewrite this code so that the search for the maximum element occurs in a loop without using the max function?

I would be very grateful for your help. Newbie to Python.

```
import random

spisok = []

for i in range(0,5):
    spisok.append(random.randint(1,25))

maxi = max(spisok)

a = sorted(spisok, reverse=True)

print('Such numbers are generated: ')
print(spisok)
print('In decreasing order: ')
print(a)

for num, i in enumerate(a, 1):
    print('{cout} maximum: {maxim}'.format(maxim = i, cout = num))

```