read n s k for((k*=k;i++k||(k=a-1,r=i))){ read a } echo ${r-Unlucky!}