import math sum=0 n=0 while True: sum=sum+math.floor(math.sqrt(n)) if sum>2022: print(n-1) break n=n+1