P06 solution