def minmax(dmax_cup):
    """
    Find min and max position of the all shots

    Parameters
    ----------

    dmax_cup: list of tuples
        each tuples has shot parameters

    returns: tuple of floats
        shot Y min, Y max, Z min, Z max
    """

    ymin =  10000.0
    ymax = -10000.0

    zmin =  10000.0
    zmax = -10000.0

    for shinfo in dmax_cup:

        shot_y = shinfo[3]
        shot_z = shinfo[4]

        if ymin > shot_y:
            ymin = shot_y

        if ymax < shot_y:
            ymax = shot_y

        if zmin > shot_z:
            zmin = shot_z

        if zmax < shot_z:
            zmax = shot_z

    return (ymin, ymax, zmin, zmax)