import sys input=lambda: sys.stdin.readline().rstrip() n,d=map(int,input().split()) if n