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