Given a $p$-group $|G|=p^n$, consider $G'=[G,G]$ and define $G^p:=\langle g^p\;:\;g\in G\rangle$: then we have that $G'G^p=\Phi(G)$, where $\Phi(G)$ is the Frattini subgroup, defined as the intersection of all maximal subgroups of $G$.
There are no hints, and I'm really stuck. Since now, no good idea came to my mind, otherwise I'd wrote it here. Any help will be appreciated!
Hints: Show that $G^{\prime}G^p\leq\Phi(G)$ and that $G^{\prime}G^p\geq\Phi(G)$.