def aa(s,v): d=1 while s