
# game loop
while True:
    mountain_h=list()
    for i in range(8):
        mountain_h.append(int(input()))
   
    print(mountain_h.index(max(mountain_h)))

'''
  Author Alumet 2015
  https://github.com/Alumet/Codingame
'''

# game loop
while True:
    mountain_h=list()
    for i in range(8):
        mountain_h.append(int(input()))
   
    print(mountain_h.index(max(mountain_h)))

Update La_descente.py