s=input()+input() cnt=0;start=0;ans=0 while start