Real Madrid beat sprited Leganes