Nahian is going to participate in the National Math Olympiad. So, he went to the bus counter to buy a ticket. After purchasing the ticket, he noticed that the number written on the top of the ticket is exactly written upside down below (for example, $9$ becomes $6$), and the digit with which the top number starts is the same digit with which the bottom number ends. When the ticket is kept straight and the number below is subtracted from the number above, the result is $78633$. It is also mentioned that each number is a five-digit number, and each digit is distinct from the others. So, can you tell what Nahian's ticket number was?