limit = 40
num = 0 
while (num +1)**2 < limit:
    num += 1
nearest_square = (num)**2


print(nearest_square)

# output -> 5

dbcb28aaed311cf3551696c340db937d6d26f5b8
<mask token>

<mask token>
while (num + 1) ** 2 < limit:
    num += 1
<mask token>
print(nearest_square)

limit = 40
num = 0
while (num + 1) ** 2 < limit:
    num += 1
nearest_square = num ** 2
print(nearest_square)

limit = 40
num = 0 
while (num +1)**2 < limit:
    num += 1
nearest_square = (num)**2


print(nearest_square)

# output -> 5
