Magic Trick solutions

Magic Trick was solved using AWK by 6 contestants. Solution sizes: average 761 bytes (shortest: 539; longest: 1630).