( ( f ( ( p ( p ( g ( p ( g ( f ( p ( p ( f ( ( p ( p (g