N_MIN = 2 N_MAX = 50_000 M_MIN = 1 M_MAX = 50_000 N, M = map(int, input().split()) assert N_MIN <= N <= N_MAX assert M_MIN <= M <= M_MAX D = list(map(int, input().split())) assert len(D) == N for i in range(N): assert 1 <= D[i] <= M