a = list(map(int,input().split())) maxn = max(a) for i in range(len(a)): if a[i] == maxn: print(i+1) break