(Translation to English below is by MadridMan
)
Hello. Another alternative in August is to go to Cantabria. There, you're near the beach as well as the mountains and it's cooler than in Madrid.
--
Hola otra alternativa es ir en Agosto a Cantabria. Tienes cerca la playa y la montaña y aunque haga calor no es ni comparado al de Madrid.