N, K = map(int, input().split()) seqA = [int(input()) for _ in range(N)] ans = 0 for num in range(1<