def parse_bsub(output):
    """Parse bsub output and return job id.

    :param output: stdout of bsub command
    :type output: str
    :returns: job id
    :rtype: str
    """
    for line in output.split("\n"):
        if line.startswith("Job"):
            return line.split()[1][1:-1]