Solution to menu problem in xkcd #287