first=input() a=int(first.split()[0]) b=int(first.split()[1]) s=0 count=0 while s