
    Given the current number of patients being treated in the emergency room, determine the next perfect square capacity threshold that would allow for optimal staff-to-patient ratios and resource distribution. This capacity threshold represents the smallest perfect square number that is greater than the current patient count, helping hospital administrators efficiently plan staff schedules and resource allocation for incoming patients.
    

    
import math

def next_Perfect_Square(N):
    """
    Given the current number of patients being treated in the emergency room, determine the next perfect square capacity threshold that would allow for optimal staff-to-patient ratios and resource distribution. This capacity threshold represents the smallest perfect square number that is greater than the current patient count, helping hospital administrators efficiently plan staff schedules and resource allocation for incoming patients.
    

    """
import math

def next_Perfect_Square(N):
    """
    Given the current number of patients being treated in the emergency room, determine the next perfect square capacity threshold that would allow for optimal staff-to-patient ratios and resource distribution. This capacity threshold represents the smallest perfect square number that is greater than the current patient count, helping hospital administrators efficiently plan staff schedules and resource allocation for incoming patients.
    

    """
    nextN = math.floor(math.sqrt(N)) + 1
    return nextN * nextN