import random
data = {}
for i in range(25):
data.setdefault(i, random.randint(0, 100))
max = -1
maxkey0 = -1
maxkey1 = -2
maxkey2 = -3
for x in data.keys():
if data[x] > max:
max = data[x]
maxkey2 = maxkey1
maxkey1 = maxkey0
maxkey0 = x
print(data)
print(maxkey0, maxkey1, maxkey2)