See #4 here:
http://www.maine.gov/revenue/faq/income_faq.html#faq1040_4
View solution in original post