solution to P2222