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