Magic Trick solutions

Magic Trick was solved using Ada by 2 contestants. Solution sizes: average 2550 bytes (shortest: 2381; longest: 2720).