import math


def polysum(n, s):
    """
    " This function should sum the area and square of the perimeter of 
    " the regular polygon. The function returns the sum, 
    " rounded to 4 decimal places.
    "
    " n is the positive int >= 3 which is the num of edges
    " s is the lenght of one edge.
    """
    #Safety Belt
    if n < 3 or s < 1:
        return 0
    #My Code Here :)
    area = (0.25*n*(s**2)) / (math.tan(math.pi/n))
    perimeter = n*s
    return round(area + (perimeter**2), 4)