Would this problem have the same solution if there was an arbitrary number of S,S boxes?