Problem #239.B (Garland) solved