Marie does three equally time-consuming tasks in a row without taking breaks. She begins the first task at $1:00$ PM and finishes the second task at $2:40$ PM. At what time, in minutes after midnight (use a 24-hour clock), does she finish the third task?

Let's think step by step and output the final answer within \boxed{}.
user