私の解答
values = input().split()
N = int(values[0])
M = int(values[1])
li = [int(x) for x in input().split()]
for i in range(M):
if li[i] == N:
print(i + 1)
解答例1
values = input().split()
N = int(values[0])
M = int(values[1])
A = [0] * M
values = input().split()
for i in range(M):
A[i] = int(values[i])
for i in range(M):
if A[i] == N:
print(i + 1)
解答例2
N, M = map(int, input().split())
A = [int(x) for x in input().split()]
for i, ele in enumerate(A):
if ele == N:
print(i + 1)
解答例3
N, M = map(int, input().split())
A = [int(x) for x in input().split()]
print(A.index(N) + 1)