How do I put where I live?

I'm a resident of Massachusetts but have lived and worked in New York, where I am a student.  How do I put this in my taxes?