p025 solved by guruma.