**Instructions:**
Analyze the given molecule represented by a SMILES string to determine the total number of penam cores present in the molecule.
- Assign unique indices to all non-hydrogen atoms in the molecule based on their order of appearance in the SMILES string (left to right), starting from 0.
- Identify penam cores, defined as bicyclic beta-lactam systems consisting of:
  - A four-membered beta-lactam ring containing the atoms of a fragment like:
    `C1CNC(=O)1`
  - Fused to a five-membered sulfur-containing ring containing a C=C bond, illustrated by a fragment like:
    `C2SC=C2`
  - A minimal penem framework can be represented by:
    `C1=C2SC1N(C2=O)`
- Count the total number of penam cores.
- For each penam core, provide the indices of all atoms in the bicyclic penam skeleton, including:
  - all atoms in the beta-lactam ring and its carbonyl oxygen,
  - all atoms in the fused sulfur ring.
- Present the results in the following structured format:
  1. Total number of penam cores: Enclose this integer within <count> and </count>.
  2. Indices of penam core atoms: Enclose the list of atom indices for each group within <atom_indices> and </atom_indices>. Each group should be represented as a separate list of indices.
- For example, if one penam is found:
  1. <count>1</count>
  2. <atom_indices> [0, 1, 2, 3, 4, 5, 6, 7] </atom_indices>

**SMILES string:** `{smiles}`