n = input() nums = input().split() target = input() for i in range(len(nums)): if target == nums[i]: print(i) break else: print(-1)
n = input() nums = input().split() target = input() for i in range(len(nums)): if target == nums[i]: print(i) break else: print(-1)