P04 solution