
    Given the current number of students attending classes, determine the minimum size needed for the next perfectly balanced intervention group structure, where the total number of students must be a perfect square to ensure equal distribution across all support subgroups. The solution will help administrators efficiently organize student support systems while maintaining balanced group sizes.
    

    
import math

def next_Perfect_Square(N):
    """
    Given the current number of students attending classes, determine the minimum size needed for the next perfectly balanced intervention group structure, where the total number of students must be a perfect square to ensure equal distribution across all support subgroups. The solution will help administrators efficiently organize student support systems while maintaining balanced group sizes.
    

    """
import math

def next_Perfect_Square(N):
    """
    Given the current number of students attending classes, determine the minimum size needed for the next perfectly balanced intervention group structure, where the total number of students must be a perfect square to ensure equal distribution across all support subgroups. The solution will help administrators efficiently organize student support systems while maintaining balanced group sizes.
    

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