How do I write off mortgage interest for 2nd residence or vacation home for 2016?

I have two houses, one is my main residence and the second is a vacation home I utilize about two months a year. Can I write off the interest and where do I input it on the 2016 home & business software?