简化解

simplified solution