An elevator is on the 12th floor. It goes down 5 floors, then up 4 floors, and finally up 7 floors. If the elevator is now on the top floor, how many floors are there in the building? Let's think step by step and output the final answer within \boxed{}.
user