def parse_shot(s):
    """
    Parse input string to extract shot
    """
    idx_shot = s.find("_")
    if idx_shot < 0:
        raise ValueError("No shot info in input")

    sh = s[idx_shot+1:]

    idx_Y = sh.find("Y")
    if idx_Y < 0:
        raise ValueError("No Y shot position in input")

    idx_Z = sh.find("Z")
    if idx_Z < 0:
        raise ValueError("No Z shot position in input")

    sh_Y = sh[idx_Y+1:idx_Z]
    sh_Z = sh[idx_Z+1:]

    return (float(sh_Y), float(sh_Z))