A program for xkcd 688