_ = input() junk = list(map(int, input().split())) print(junk.index(min(junk)))