For this Question: Given an integer K, find a positive integer x such that <b>K = x<sup>2</sup> + 3*x</b>. If no such positive integer x exists, print -1.First and the only line of the input contains an integer K.

Constraints:
1 <= K <= 10<sup>18</sup>Print a positive integer x such that the above equation satisfies. If no such integer x exists, print -1.Sample Input:
28

Sample Output:
4

Explaination:
4<sup>2</sup> + 3*4 = 28
There is no other positive integer that will give such result., I have written this Solution Code: def FindIt(n):
    sqrt_n = int(K**0.5)
    check = -1

    for i in range(sqrt_n - 1, sqrt_n - 2, -1):
        check = i**2 + (i * 3)
        if check == n:
            return i
    
    return -1

K = int(input())

print(FindIt(K)), In this Programming Language: Python, Now tell me if this Code is compilable or not?