def aa(s): d=1 while s