<gh_stars>0
class Solution:
    def XXX(self, x: int) -> int:
        for j in range(x):
            if j * j >= x or (j + 0.9999999) * (j + 0.99999999) >= x:
                return j
        return x


class Solution:
    def XXX(self, x: int) -> int:
        for j in range(x):
            if j * j >= x or (j + 0.9999999) * (j + 0.99999999) >= x:
                return j
        return x