from collections import defaultdict import sys readline=sys.stdin.readline write=sys.stdout.write A,B=map(int,readline().split()) if A