```python
import math

def next_Perfect_Square(N):
    """
    Finds the next perfect square greater than a given number N.
    """
    if N < 0:
        return 0
    
    # Find the integer part of the square root of N
    sqrt_N = math.isqrt(N)
    
    # The next integer after the square root
    next_int = sqrt_N + 1
    
    # The square of the next integer is the next perfect square
    return next_int * next_int

```