Janson found $2025$ dogs on a circle. Janson wants to select some (possibly none) of the dogs to take home, such that no two selected dogs have exactly two dogs (whether selected or not) in between them. Let $S_{1}$ be the number of ways for him to do so. Ivan also found $2025$ cats on a circle. Ivan wants to select some (possibly none) of the cats to take home, such that no two selected cats have exactly five cats (whether selected or not) in between them. Let $S_{2}$ be the number of ways for him to do so. a) Prove that $S_{1}=S_{2}$. b) Prove that $S_{1}$ and $S_{2}$ are both perfect cubes.