*"In cold countrieS..."
Aside from that mistake, both sentences are technically correct. Of course, "keeping warm" is a noun (well, gerund) in the first sentence, and "to keep" is a verb in the second sentence. The second sentence sounds much more natural though. It sounds odd to use a noun here.