N, S, K = [int(x) for x in input().split()] min = 10 shop = 11 diff = 10 for i in range(N): diff = abs(int(input()) - S) if diff < min: min = diff shop = i if min <= K: print(shop+1) else: print("unlucky")