a,b=map(int,input().split()) z=0 c=0 while c