import sys import math input = sys.stdin.readline #sys.setrecursionlimit(10000000) def read_values(): return map(int, input().split()) def read_index(): return map(lambda x: int(x) - 1, input().split()) def read_list(): return list(read_values()) def read_lists(N): return [read_list() for _ in range(N)] def main(): N,M=read_values() P=read_list() pb=[0]*N for i in range(N): P[i]-=1 pb[P[i]]^=1<