import sys readline=sys.stdin.readline from collections import defaultdict N,M=map(int,readline().split()) A,B=[],[] for m in range(M): a,b=map(int,readline().split()) a-=1;b-=1 A.append(a) B.append(b) inf=1<<60 m=M//2 dct=defaultdict(lambda:inf) for bit in range(1<