class Solution:
    def reachNumber(self, t: int) -> int:
        if t < 0:
            t = -t
        i = 2
        s = 1
        while (s < t or (s-t) % 2):
            s += i
            i+=1
        
        return i-1

2a58a1c8d93f31e7202124e3f4336c441ad0cc8a
<mask token>

class Solution:
    <mask token>

class Solution:

    def reachNumber(self, t: int) ->int:
        if t < 0:
            t = -t
        i = 2
        s = 1
        while s < t or (s - t) % 2:
            s += i
            i += 1
        return i - 1

class Solution:
    def reachNumber(self, t: int) -> int:
        if t < 0:
            t = -t
        i = 2
        s = 1
        while (s < t or (s-t) % 2):
            s += i
            i+=1
        
        return i-1
