Ticket A: The first digit and the last 2 digits match, but the remaining digits do not match. It means that this ticket only wins a "Match first 1" prize
Ticket B: The first 3 digits and the last 2 digits match, but the 4th digit does not. It means that this ticket only wins a "Match first 3" prize