Sweating is the only way the body can maintain its proper temperature in hot weather.
(Sweating; is; the only way the body can maintain its proper temperature in hot weather) (the body; can maintain; its proper temperature in hot weather)
Sweating the body
is can maintain
the only way the body can maintain its proper temperature in hot weather
its proper temperature in hot weather