Determine predecessors and successors

XS

XL

M