notebook.community
Edit and run
In [ ]: x=1 total=0 s=1 while total>=x or s<=x*x: total=total+x s=s*x x=int(input())
x=1 total=0 s=1 while total>=x or s<=x*x: total=total+x s=s*x x=int(input())
1 2 3 43