solved 1105: S-Trees