Answer:
n = [int(i) for i in input("Input 5 . separated integers: ").split('.')][:5]
max_value = max(n)
index = n.index(max_value)
if index==0:
print("Leftmost")
elif index==2:
print("Middle")
elif index==4:
print("Rightmost")
else:
print("Unknown")
Explanation:
Hope this helps!