**** Adapted from a problem appearing at a William Lowell Putnam Mathematics Competition
blackjack
flooble's webmaster puzzle